access-token-provider-0.1.0.0: Provides Access Token for Services

Safe HaskellNone
LanguageHaskell2010

Security.AccessTokenProvider.Internal.Types

Synopsis

Documentation

data AccessTokenProvider (m :: * -> *) t Source #

data AtpConfFixed Source #

Constructors

AtpConfFixed 

Instances

data AtpConfFile Source #

Constructors

AtpConfFile 

newtype AtpRopcgTokenDef Source #

Constructors

AtpRopcgTokenDef 

Fields

Instances

Eq AtpRopcgTokenDef Source # 
Show AtpRopcgTokenDef Source # 
Generic AtpRopcgTokenDef Source # 
ToJSON AtpRopcgTokenDef Source # 
FromJSON AtpRopcgTokenDef Source # 
HasToken AtpPreconfRopcg (Maybe AtpRopcgTokenDef) Source # 
HasToken AtpConfRopcg (Maybe AtpRopcgTokenDef) Source # 
HasScopes AtpRopcgTokenDef [Text] Source # 
HasTokens AtpPreconfRopcg (Map Text AtpRopcgTokenDef) Source # 
HasTokens AtpConfRopcg (Map Text AtpRopcgTokenDef) Source # 
type Rep AtpRopcgTokenDef Source # 
type Rep AtpRopcgTokenDef = D1 * (MetaData "AtpRopcgTokenDef" "Security.AccessTokenProvider.Internal.Types" "access-token-provider-0.1.0.0-4mFJVurz9plEddXyqtZaeZ" True) (C1 * (MetaCons "AtpRopcgTokenDef" PrefixI True) (S1 * (MetaSel (Just Symbol "_scopes") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * [Text])))

data AtpPreconfRopcg Source #

Instances

Eq AtpPreconfRopcg Source # 
Show AtpPreconfRopcg Source # 
Generic AtpPreconfRopcg Source # 
ToJSON AtpPreconfRopcg Source # 
FromJSON AtpPreconfRopcg Source # 
HasAuthEndpoint AtpPreconfRopcg Text Source # 
HasToken AtpPreconfRopcg (Maybe AtpRopcgTokenDef) Source # 
HasResourceOwnerPasswordFile AtpPreconfRopcg (Maybe FilePath) Source # 
HasRefreshTimeFactor AtpPreconfRopcg (Maybe Double) Source # 
HasCredentialsDirectory AtpPreconfRopcg (Maybe FilePath) Source # 
HasClientPasswordFile AtpPreconfRopcg (Maybe FilePath) Source # 
HasTokens AtpPreconfRopcg (Map Text AtpRopcgTokenDef) Source # 
type Rep AtpPreconfRopcg Source # 

data AtpConfRopcg Source #

Instances

Generic AtpConfRopcg Source # 

Associated Types

type Rep AtpConfRopcg :: * -> * #

HasResourceOwnerPasswordFile AtpConfRopcg FilePath Source # 
HasRefreshTimeFactor AtpConfRopcg Double Source # 
HasManager AtpConfRopcg Manager Source # 
HasCredentialsDirectory AtpConfRopcg FilePath Source # 
HasClientPasswordFile AtpConfRopcg FilePath Source # 
HasAuthEndpoint AtpConfRopcg Request Source # 
HasToken AtpConfRopcg (Maybe AtpRopcgTokenDef) Source # 
HasTokens AtpConfRopcg (Map Text AtpRopcgTokenDef) Source # 
type Rep AtpConfRopcg Source # 

data ClientCredentials Source #

Type modelling the content of the credentials stored in a client.json file.

Constructors

ClientCredentials 

Instances

Eq ClientCredentials Source # 
Show ClientCredentials Source # 
Generic ClientCredentials Source # 
ToJSON ClientCredentials Source # 
FromJSON ClientCredentials Source # 
HasClientSecret ClientCredentials Text Source # 
HasClientId ClientCredentials Text Source # 
HasClient Credentials ClientCredentials Source # 
type Rep ClientCredentials Source # 
type Rep ClientCredentials = D1 * (MetaData "ClientCredentials" "Security.AccessTokenProvider.Internal.Types" "access-token-provider-0.1.0.0-4mFJVurz9plEddXyqtZaeZ" False) (C1 * (MetaCons "ClientCredentials" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_clientId") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_clientSecret") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text))))

data UserCredentials Source #

Type modelling the content of the credentials stored in a user.json file.

Instances

Eq UserCredentials Source # 
Show UserCredentials Source # 
Generic UserCredentials Source # 
ToJSON UserCredentials Source # 
FromJSON UserCredentials Source # 
HasApplicationUsername UserCredentials Text Source # 
HasApplicationPassword UserCredentials Text Source # 
HasUser Credentials UserCredentials Source # 
type Rep UserCredentials Source # 
type Rep UserCredentials = D1 * (MetaData "UserCredentials" "Security.AccessTokenProvider.Internal.Types" "access-token-provider-0.1.0.0-4mFJVurz9plEddXyqtZaeZ" False) (C1 * (MetaCons "UserCredentials" PrefixI True) ((:*:) * (S1 * (MetaSel (Just Symbol "_applicationUsername") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_applicationPassword") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text))))

data OAuth2Error Source #

Type for RFC7807 Problem objects.

Instances

Eq OAuth2Error Source # 
Show OAuth2Error Source # 
Generic OAuth2Error Source # 

Associated Types

type Rep OAuth2Error :: * -> * #

ToJSON OAuth2Error Source # 
FromJSON OAuth2Error Source # 
type Rep OAuth2Error Source # 
type Rep OAuth2Error = D1 * (MetaData "OAuth2Error" "Security.AccessTokenProvider.Internal.Types" "access-token-provider-0.1.0.0-4mFJVurz9plEddXyqtZaeZ" False) (C1 * (MetaCons "OAuth2Error" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "oauth2Error") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "oauth2ErrorDescription") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text)))) ((:*:) * (S1 * (MetaSel (Just Symbol "oauth2ErrorURI") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "oauth2ErrorState") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))))))

data AtpRopcgResponse Source #

Instances

Eq AtpRopcgResponse Source # 
Show AtpRopcgResponse Source # 
Generic AtpRopcgResponse Source # 
ToJSON AtpRopcgResponse Source # 
FromJSON AtpRopcgResponse Source # 
HasTokenType AtpRopcgResponse Text Source # 
HasAccessToken AtpRopcgResponse Text Source # 
HasScope AtpRopcgResponse (Maybe Text) Source # 
HasExpiresIn AtpRopcgResponse (Maybe Int) Source # 
type Rep AtpRopcgResponse Source # 
type Rep AtpRopcgResponse = D1 * (MetaData "AtpRopcgResponse" "Security.AccessTokenProvider.Internal.Types" "access-token-provider-0.1.0.0-4mFJVurz9plEddXyqtZaeZ" False) (C1 * (MetaCons "AtpRopcgResponse" PrefixI True) ((:*:) * ((:*:) * (S1 * (MetaSel (Just Symbol "_scope") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Text))) (S1 * (MetaSel (Just Symbol "_expiresIn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * (Maybe Int)))) ((:*:) * (S1 * (MetaSel (Just Symbol "_tokenType") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)) (S1 * (MetaSel (Just Symbol "_accessToken") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 * Text)))))

newtype AtpProbe m Source #

Constructors

AtpProbe (forall t. AccessTokenName -> m (Maybe (AccessTokenProvider m t)))