truqu/elm-oauth2/2.0.0

NOTE: this package is not compatible with Elm 0.19.1

OAuth.ClientCredentials

The client can request an access token using only its client credentials (or other supported means of authentication) when the client is requesting access to the protected resources under its control, or those of another resource owner that have been previously arranged with the authorization server (the method of which is beyond the scope of this specification).

There's only one step in this process:

  • The client authenticates itself directly using credentials it owns.

After this step, the client owns an access_token that can be used to authorize any subsequent request.

Authenticate

authenticate : Authentication -> Request ResponseToken

Authenticate the client using the authorization code obtained from the authorization.

In this case, use the ClientCredentials constructor.