View Source Boruta.Oauth.Clients behaviour (Boruta core v2.3.4)

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 all clients jwk public keys

Callbacks

Link to this callback

authorized_scopes(client)

View Source
@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.

Link to this callback

list_clients_jwk()

View Source (optional)
@callback list_clients_jwk() :: [%JOSE.JWK{fields: term(), keys: term(), kty: term()}]

Returns all clients jwk public keys