View Source Boruta.Oauth.Clients behaviour (Boruta core v3.0.0-beta.2)
Client context
Summary
Callbacks
Returns client authorized scopes. The scopes will be granted for every requests to the given client.
Returns a Boruta.Oauth.Client
given id.
Returns a Boruta.Oauth.Client
given did.
Returns all clients jwk public keys
Returns the public Boruta.Oauth.Client
.
Callbacks
@callback authorized_scopes(client :: Boruta.Oauth.Client.t()) :: [Boruta.Oauth.Scope.t()]
Returns client authorized scopes. The scopes will be granted for every requests to the given client.
@callback get_client(id :: any()) :: client :: Boruta.Oauth.Client.t() | nil
Returns a Boruta.Oauth.Client
given id.
@callback get_client_by_did(did :: String.t()) :: client :: Boruta.Oauth.Client.t() | nil
Returns a Boruta.Oauth.Client
given did.
Returns all clients jwk public keys
@callback public!() :: client :: Boruta.Oauth.Client.t() | nil
Returns the public Boruta.Oauth.Client
.