hoauth2-2.10.0: Haskell OAuth2 authentication client

Safe Haskell | Safe-Inferred
Language | Haskell2010

Network.OAuth2.Experiment.Grants.ResourceOwnerPassword

Synopsis

- data ResourceOwnerPasswordApplication = ResourceOwnerPasswordApplication {
  - ropClientId :: ClientId
  - ropClientSecret :: ClientSecret
  - ropName :: Text
  - ropScope :: Set Scope
  - ropUserName :: Username
  - ropPassword :: Password
  - ropTokenRequestExtraParams :: Map Text Text
  }

# Documentation

data ResourceOwnerPasswordApplication Source #

An Application that supports "Resource Owner Password" flow

https://www.rfc-editor.org/rfc/rfc6749#section-4.3

Constructors

ResourceOwnerPasswordApplication |

Fields

- ropClientId :: ClientId
- ropClientSecret :: ClientSecret
- ropName :: Text
- ropScope :: Set Scope
- ropUserName :: Username
- ropPassword :: Password
- ropTokenRequestExtraParams :: Map Text Text

#### Instances

Instances details

HasRefreshTokenRequest ResourceOwnerPasswordApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword Methods mkRefreshTokenRequestParam :: ResourceOwnerPasswordApplication -> RefreshToken -> RefreshTokenRequest Source #
HasTokenRequest ResourceOwnerPasswordApplication Source # | https://www.rfc-editor.org/rfc/rfc6749#section-4.3.2
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword Associated Types data TokenRequest ResourceOwnerPasswordApplication Source # type ExchangeTokenInfo ResourceOwnerPasswordApplication Source # Methods mkTokenRequestParam :: ResourceOwnerPasswordApplication -> ExchangeTokenInfo ResourceOwnerPasswordApplication -> TokenRequest ResourceOwnerPasswordApplication Source #
HasTokenRequestClientAuthenticationMethod ResourceOwnerPasswordApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword Methods getClientAuthenticationMethod :: ResourceOwnerPasswordApplication -> ClientAuthenticationMethod Source #
HasOAuth2Key ResourceOwnerPasswordApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword Methods mkOAuth2Key :: ResourceOwnerPasswordApplication -> OAuth2 Source #
HasUserInfoRequest ResourceOwnerPasswordApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword
ToQueryParam (TokenRequest ResourceOwnerPasswordApplication) Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword Methods toQueryParam :: TokenRequest ResourceOwnerPasswordApplication -> Map Text Text Source #
type ExchangeTokenInfo ResourceOwnerPasswordApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword type ExchangeTokenInfo ResourceOwnerPasswordApplication = NoNeedExchangeToken
data TokenRequest ResourceOwnerPasswordApplication Source # |

Instance details

Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword

data TokenRequest ResourceOwnerPasswordApplication = PasswordTokenRequest {

- trScope :: Set Scope
- trUsername :: Username
- trPassword :: Password
- trGrantType :: GrantTypeValue
- trExtraParams :: Map Text Text

}