Boruta.Oauth.Clients behaviour (Boruta core v1.2.0) View Source

Client context

Link to this section Summary

Callbacks

Returns client authorized scopes. The scopes will be granted for every requests to the given client.

Returns a Boruta.Oauth.Client by either id and secret ou by id and redirect_uri.

Link to this section Callbacks

Link to this callback

authorized_scopes(client)

View Source

Specs

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.

Specs

get_by(
  [{:id, id :: String.t()}]
  | [id: id :: String.t(), secret: String.t()]
  | [id: id :: String.t(), redirect_uri: String.t()]
) :: client :: Boruta.Oauth.Client.t() | nil

Returns a Boruta.Oauth.Client by either id and secret ou by id and redirect_uri.