hoauth2-2.14.3: Haskell OAuth2 authentication client

Safe Haskell | None
Language | Haskell2010

Network.OAuth2.Experiment.Grants.AuthorizationCode

Synopsis

- data AuthorizationCodeApplication = AuthorizationCodeApplication {
  - acName :: Text
  - acClientId :: ClientId
  - acClientSecret :: ClientSecret
  - acScope :: Set Scope
  - acRedirectUri :: URI
  - acAuthorizeState :: AuthorizeState
  - acAuthorizeRequestExtraParams :: Map Text Text
  - acTokenRequestAuthenticationMethod :: ClientAuthenticationMethod
  }

# Documentation

data AuthorizationCodeApplication Source #

An Application that supports "Authorization code" flow

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

Constructors

AuthorizationCodeApplication |

Fields

- acName :: Text
- acClientId :: ClientId
- acClientSecret :: ClientSecret
- acScope :: Set Scope
- acRedirectUri :: URI
- acAuthorizeState :: AuthorizeState
- acAuthorizeRequestExtraParams :: Map Text Text
- acTokenRequestAuthenticationMethod :: ClientAuthenticationMethod

#### Instances

Instances details

HasAuthorizeRequest AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods mkAuthorizationRequestParam :: AuthorizationCodeApplication -> AuthorizationRequestParam Source #
HasPkceAuthorizeRequest AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods mkPkceAuthorizeRequestParam :: MonadIO m => AuthorizationCodeApplication -> m (AuthorizationRequestParam, CodeVerifier) Source #
HasRefreshTokenRequest AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods mkRefreshTokenRequestParam :: AuthorizationCodeApplication -> RefreshToken -> RefreshTokenRequest Source #
HasTokenRequest AuthorizationCodeApplication Source # | https://www.rfc-editor.org/rfc/rfc6749#section-4.1.3

Instance details

Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode

Associated Types

data TokenRequest AuthorizationCodeApplication |

Instance details

Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode

data TokenRequest AuthorizationCodeApplication = AuthorizationCodeTokenRequest {

- trCode :: ExchangeToken
- trGrantType :: GrantTypeValue
- trRedirectUri :: RedirectUri
- trClientId :: Maybe ClientId
- trClientSecret :: Maybe ClientSecret

}

type ExchangeTokenInfo AuthorizationCodeApplication |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode type ExchangeTokenInfo AuthorizationCodeApplication = ExchangeToken

Methods

mkTokenRequestParam :: AuthorizationCodeApplication -> ExchangeTokenInfo AuthorizationCodeApplication -> TokenRequest AuthorizationCodeApplication Source #

HasTokenRequestClientAuthenticationMethod AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods getClientAuthenticationMethod :: AuthorizationCodeApplication -> ClientAuthenticationMethod Source #
HasOAuth2Key AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods mkOAuth2Key :: AuthorizationCodeApplication -> OAuth2 Source #
HasUserInfoRequest AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode
ToQueryParam (TokenRequest AuthorizationCodeApplication) Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode Methods toQueryParam :: TokenRequest AuthorizationCodeApplication -> Map Text Text Source #
type ExchangeTokenInfo AuthorizationCodeApplication Source # |
Instance details Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode type ExchangeTokenInfo AuthorizationCodeApplication = ExchangeToken
data TokenRequest AuthorizationCodeApplication Source # |

Instance details

Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode

data TokenRequest AuthorizationCodeApplication = AuthorizationCodeTokenRequest {

- trCode :: ExchangeToken
- trGrantType :: GrantTypeValue
- trRedirectUri :: RedirectUri
- trClientId :: Maybe ClientId
- trClientSecret :: Maybe ClientSecret

}