Boruta core v0.1.0-rc.5 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
Link to this function
authorize(list)
View Sourceauthorize( [id: String.t(), secret: String.t()] | [id: String.t(), redirect_uri: String.t()] ) :: {:ok, %Boruta.Oauth.Client{ authorize_scope: term(), authorized_scopes: term(), id: term(), redirect_uri: term(), secret: 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{...}}