ExOauth2Provider v0.2.1 ExOauth2Provider.Token View Source
Handler for dealing with generating access tokens.
Link to this section Summary
Functions
Grants an access token based on grant_type strategy
Revokes an access token as per http://tools.ietf.org/html/rfc7009
Link to this section Functions
Grants an access token based on grant_type strategy.
Example
ExOauth2Provider.Token.authorize(resource_owner, %{
"grant_type" => "invalid",
"client_id" => "Jf5rM8hQBc",
"client_secret" => "secret"
})
Response
{:error, %{error: error, error_description: description}, http_status}