Boruta core v1.0.0-rc.2 Boruta.Oauth.Authorization.Client View Source
Client authorization
Link to this section Summary
Functions
Authorize the client corresponding to the given params.
Link to this section Functions
Specs
authorize( [id: String.t(), secret: String.t()] | [id: String.t(), secret: String.t(), grant_type: String.t()] | [id: String.t(), redirect_uri: String.t(), grant_type: String.t()] ) :: {:ok, %Boruta.Oauth.Client{ authorize_scope: term(), authorized_scopes: term(), id: term(), redirect_uris: term(), secret: term(), supported_grant_types: term() }} | {:error, %Boruta.Oauth.Error{ error: :invalid_client, error_description: String.t(), format: nil, redirect_uri: nil, status: :unauthorized }}
Authorize the client corresponding to the given params.
Examples
iex> authorize(id: "id", secret: "secret")
{:ok, %Boruta.Oauth.Client{...}}