View Source Auth0.Management.ClientGrants (Auth0Api v2.5.0)

Facade for the Auth0 Management API Client Grants endpoints.

Most applications should call Auth0.Api.Management instead of this module.

Summary

Functions

Create a client grant for a machine-to-machine login flow.

Delete the Client Credential Flow from your machine-to-machine application.

Get client grant.

Retrieve a list of client grants, including the scopes associated with the application/API pair.

Get the organizations associated to a client grant.

Update a client grant.

Types

@type config() :: Auth0.Config.t()
@type error() :: {:error, integer(), term()} | {:error, term()}
@type id() :: String.t()

Functions

@spec create(map(), config()) :: {:ok, map()} | error()

Create a client grant for a machine-to-machine login flow.

see

https://auth0.com/docs/api/management/v2/client-grants/post-client-grants

@spec delete(id(), config()) :: {:ok, String.t()} | error()

Delete the Client Credential Flow from your machine-to-machine application.

see

https://auth0.com/docs/api/management/v2/client-grants/delete-client-grants-by-id

@spec get(String.t(), config()) :: {:ok, map()} | error()

Get client grant.

Retrieve a single client grant, including the scopes associated with the application/API pair.

see

https://auth0.com/docs/api/management/v2/client-grants/get-client-grant

@spec list(map(), config()) :: {:ok, [map()] | map()} | error()

Retrieve a list of client grants, including the scopes associated with the application/API pair.

see

https://auth0.com/docs/api/management/v2/client-grants/get-client-grants

Link to this function

list_organizations(id, params, config)

View Source
@spec list_organizations(String.t(), map(), config()) ::
  {:ok, map() | [map()]} | error()

Get the organizations associated to a client grant.

see

https://auth0.com/docs/api/management/v2/client-grants/get-client-grant-organizations

Link to this function

update(id, params, config)

View Source
@spec update(id(), map(), config()) :: {:ok, map()} | error()

Update a client grant.

see

https://auth0.com/docs/api/management/v2/client-grants/patch-client-grants-by-id