Safe Haskell | None |
---|---|
Language | Haskell2010 |
Security.AccessTokenProvider.Internal.Types
- type LazyByteString = ByteString
- data AccessTokenProvider (m :: * -> *) t = AccessTokenProvider {
- retrieveAccessToken :: m (AccessToken t)
- releaseProvider :: m ()
- newtype AccessToken t = AccessToken {}
- newtype AccessTokenName = AccessTokenName Text
- data AtpConfFixed = AtpConfFixed {}
- data AtpConfFile = AtpConfFile {}
- newtype AtpRopcgTokenDef = AtpRopcgTokenDef {}
- data AtpPreconfRopcg = AtpPreconfRopcg {}
- data AtpConfRopcg = AtpConfRopcg {}
- data ClientCredentials = ClientCredentials {
- _clientId :: Text
- _clientSecret :: Text
- data UserCredentials = UserCredentials {}
- data OAuth2Error = OAuth2Error {}
- data AccessTokenProviderException
- data Credentials = Credentials {}
- data AtpRopcgResponse = AtpRopcgResponse {
- _scope :: Maybe Text
- _expiresIn :: Maybe Int
- _tokenType :: Text
- _accessToken :: Text
- newtype AtpProbe m = AtpProbe (forall t. AccessTokenName -> m (Maybe (AccessTokenProvider m t)))
- class Monad m => MonadFilesystem m where
- class Monad m => MonadEnvironment m where
- class Monad m => MonadHttp m where
Documentation
type LazyByteString = ByteString Source #
data AccessTokenProvider (m :: * -> *) t Source #
Constructors
AccessTokenProvider | |
Fields
|
newtype AccessToken t Source #
Constructors
AccessToken | |
Fields |
Instances
Eq (AccessToken t) Source # | |
Ord (AccessToken t) Source # | |
Show (AccessToken t) Source # | |
newtype AccessTokenName Source #
Constructors
AccessTokenName Text |
data AtpConfFixed Source #
Instances
data AtpConfFile Source #
Instances
newtype AtpRopcgTokenDef Source #
Constructors
AtpRopcgTokenDef | |
Instances
data AtpPreconfRopcg Source #
Constructors
AtpPreconfRopcg | |
Instances
data AtpConfRopcg Source #
Constructors
AtpConfRopcg | |
Instances
data ClientCredentials Source #
Type modelling the content of the credentials stored in a client.json file.
Constructors
ClientCredentials | |
Fields
|
Instances
data UserCredentials Source #
Type modelling the content of the credentials stored in a user.json file.
Constructors
UserCredentials | |
Fields |
Instances
data Credentials Source #
Type containing all credentials read from a mint credentials directory.
Constructors
Credentials | |
Fields |
data AtpRopcgResponse Source #
Constructors
AtpRopcgResponse | |
Fields
|
Instances
Constructors
AtpProbe (forall t. AccessTokenName -> m (Maybe (AccessTokenProvider m t))) |
class Monad m => MonadFilesystem m where Source #
Methods
fileRead :: FilePath -> m ByteString Source #
fileRead :: (m ~ t n, MonadTrans t, MonadFilesystem n) => FilePath -> m ByteString Source #
Instances
MonadFilesystem IO Source # | |
MonadFilesystem m => MonadFilesystem (MaybeT m) Source # | |
MonadFilesystem m => MonadFilesystem (KatipContextT m) Source # | |
MonadFilesystem m => MonadFilesystem (KatipT m) Source # | |
MonadFilesystem m => MonadFilesystem (StateT s m) Source # | |
MonadFilesystem m => MonadFilesystem (ReaderT * r m) Source # | |
class Monad m => MonadEnvironment m where Source #
Methods
environmentLookup :: Text -> m (Maybe Text) Source #
environmentLookup :: (m ~ t n, MonadTrans t, MonadEnvironment n) => Text -> m (Maybe Text) Source #
Instances
MonadEnvironment IO Source # | |
MonadEnvironment m => MonadEnvironment (MaybeT m) Source # | |
MonadEnvironment m => MonadEnvironment (KatipContextT m) Source # | |
MonadEnvironment m => MonadEnvironment (KatipT m) Source # | |
MonadEnvironment m => MonadEnvironment (StateT s m) Source # | |
MonadEnvironment m => MonadEnvironment (ReaderT * r m) Source # | |
class Monad m => MonadHttp m where Source #
Methods
httpRequestExecute :: Request -> Manager -> m (Response LazyByteString) Source #
httpRequestExecute :: (m ~ t n, MonadTrans t, MonadHttp n) => Request -> Manager -> m (Response LazyByteString) Source #