Method: Auth0::Api::V2::Clients#client_credentials

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

#client_credentials(client_id) ⇒ hash Also known as: get_client_credentials

Gets the credentials for a client

Parameters:

  • client_id (string)

    The Id of the client

Returns:

  • (hash)

    The client credentials

Raises:



88
89
90
91
# File 'lib/auth0/api/v2/clients.rb', line 88

def client_credentials(client_id)
  raise Auth0::MissingClientId, 'Must specify a client id' if client_id.to_s.empty?
  get(client_credentials_path(client_id))
end