Method: Auth0::Api::V2::Users#user_authentication_method

Defined in:
lib/auth0/api/v2/users.rb

#user_authentication_method(user_id, authentication_method_id) ⇒ json Also known as: get_user_authentication_method

Get a specific authentication method for a user.

Parameters:

  • user_id (string)

    The user ID of the authentication methods to get

  • authentication_method_id (string)

    The ID of the authentication method

Returns:

  • (json)

    The user authentication method

Raises:

See Also:



360
361
362
363
364
365
# File 'lib/auth0/api/v2/users.rb', line 360

def user_authentication_method(user_id, authentication_method_id)
  raise Auth0::MissingUserId, 'Must supply a valid user_id' if user_id.to_s.empty?
  raise Auth0::MissingParameter, 'Must supply a valid authentication_method_id' if authentication_method_id.to_s.empty?

  get "#{users_path}/#{user_id}/authentication-methods/#{authentication_method_id}"
end