hoauth2-2.9.0: Haskell OAuth2 authentication client
Safe HaskellSafe-Inferred
LanguageHaskell2010

Network.OAuth2.Experiment.Types

Synopsis

Idp App

data Idp (i :: k) Source #

Idp i consists various endpoints endpoints.

The i is actually phantom type for information only (Idp name) at this moment. And it is PolyKinds.

Hence whenever Idp i or IdpApplication i a is used as function parameter, PolyKinds need to be enabled.

Constructors

Idp 

Fields

Scope

newtype Scope Source #

Constructors

Scope 

Fields

Instances

Instances details
IsString Scope Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Methods

fromString :: String -> Scope #

Eq Scope Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Methods

(==) :: Scope -> Scope -> Bool #

(/=) :: Scope -> Scope -> Bool #

Ord Scope Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Methods

compare :: Scope -> Scope -> Ordering #

(<) :: Scope -> Scope -> Bool #

(<=) :: Scope -> Scope -> Bool #

(>) :: Scope -> Scope -> Bool #

(>=) :: Scope -> Scope -> Bool #

max :: Scope -> Scope -> Scope #

min :: Scope -> Scope -> Scope #

ToQueryParam (Set Scope) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Grant Type value

data GrantTypeValue Source #

Grant type query parameter has association with different GrantType flows but not completely strict.

e.g. Both AuthorizationCode and ResourceOwnerPassword flow could support refresh token flow.

data ResponseType Source #

Constructors

Code 

Instances

Instances details
ToQueryParam ResponseType Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Credentials

newtype ClientId Source #

Constructors

ClientId 

Fields

Instances

Instances details
IsString ClientId Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Show ClientId Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Eq ClientId Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam ClientId Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

newtype ClientSecret Source #

Can be either "Client Secret" or JWT base on client authentication method

Constructors

ClientSecret 

Fields

toOAuth2Key :: ClientId -> ClientSecret -> OAuth2 Source #

In order to reuse some methods from legacy Network.OAuth.OAuth2. Will be removed when Experiment module becomes default.

newtype RedirectUri Source #

Constructors

RedirectUri 

Fields

Instances

Instances details
Eq RedirectUri Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam RedirectUri Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

newtype Username Source #

Constructors

Username 

Fields

Instances

Instances details
IsString Username Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Eq Username Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam Username Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

newtype Password Source #

Constructors

Password 

Fields

Instances

Instances details
IsString Password Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Eq Password Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam Password Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

Query parameters

class ToQueryParam a where Source #

Methods

toQueryParam :: a -> Map Text Text Source #

Instances

Instances details
ToQueryParam ExchangeToken Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam RefreshToken Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam AuthorizationRequestParam Source # 
Instance details

Defined in Network.OAuth2.Experiment.Flows.AuthorizationRequest

ToQueryParam DeviceAuthorizationRequestParam Source # 
Instance details

Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest

ToQueryParam DeviceCode Source # 
Instance details

Defined in Network.OAuth2.Experiment.Flows.DeviceAuthorizationRequest

ToQueryParam RefreshTokenRequest Source # 
Instance details

Defined in Network.OAuth2.Experiment.Flows.RefreshTokenRequest

ToQueryParam CodeChallenge Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam CodeChallengeMethod Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam CodeVerifier Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam AuthorizeState Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam ClientId Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam ClientSecret Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam GrantTypeValue Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam Password Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam RedirectUri Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam ResponseType Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam Username Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam (Set Scope) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types

ToQueryParam (TokenRequest AuthorizationCodeApplication) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.AuthorizationCode

ToQueryParam (TokenRequest ClientCredentialsApplication) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.ClientCredentials

ToQueryParam (TokenRequest DeviceAuthorizationApplication) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.DeviceAuthorization

ToQueryParam (TokenRequest JwtBearerApplication) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.JwtBearer

ToQueryParam (TokenRequest ResourceOwnerPasswordApplication) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Grants.ResourceOwnerPassword

ToQueryParam a => ToQueryParam (Maybe a) Source # 
Instance details

Defined in Network.OAuth2.Experiment.Types