truqu/elm-oauth2/2.2.0

NOTE: this package is not compatible with Elm 0.19.1

OAuth.Password

The resource owner password credentials grant type is suitable in cases where the resource owner has a trust relationship with the client, such as the device operating system or a highly privileged application. The authorization server should take special care when enabling this grant type and only allow it when other flows are not viable.

There's only one step in this process:

  • The client authenticates itself directly using the resource owner (user) credentials

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 Password constructor.

AdjustRequest ResponseToken
-> Authentication
-> Request ResponseToken

Authenticate the client using the authorization code obtained from the authorization, passing additional custom options. Use with care.

In this case, use the Password constructor.