| Safe Haskell | None |
|---|---|
| Language | Haskell2010 |
Network.PlanB.Introspection.Internal.Types
Synopsis
- type LazyByteString = ByteString
- data TokenIntrospector m = TokenIntrospector {
- introspectToken :: ByteString -> m TokenInfo
- data TokenInfo = TokenInfo {}
- data BackendHttp m = BackendHttp {
- httpRequestExecute :: Request -> m (Response LazyByteString)
- data BackendEnv m = BackendEnv {}
- data Backend m = Backend {
- backendHttp :: BackendHttp m
- backendEnv :: BackendEnv m
- data Conf m = Conf {}
- data ErrorResponse = ErrorResponse {}
- data IntrospectionError
Documentation
type LazyByteString = ByteString Source #
data TokenIntrospector m Source #
A TokenIntrospector can be used for introspecting tokens.
Constructors
| TokenIntrospector | |
Fields
| |
Information returned on a successful token introspection.
Constructors
| TokenInfo | |
Fields
| |
Instances
| Show TokenInfo Source # | |
| Generic TokenInfo Source # | |
| ToJSON TokenInfo Source # | |
Defined in Network.PlanB.Introspection.Internal.Types | |
| FromJSON TokenInfo Source # | |
| type Rep TokenInfo Source # | |
Defined in Network.PlanB.Introspection.Internal.Types type Rep TokenInfo = D1 (MetaData "TokenInfo" "Network.PlanB.Introspection.Internal.Types" "planb-token-introspection-0.1.4.0-BcrjmGCfBxW3UAbM4QCMBf" False) (C1 (MetaCons "TokenInfo" PrefixI True) ((S1 (MetaSel (Just "tokenInfoExpiresIn") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Int) :*: S1 (MetaSel (Just "tokenInfoScope") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 (Set Text))) :*: (S1 (MetaSel (Just "tokenInfoUid") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text) :*: S1 (MetaSel (Just "tokenInfoRealm") NoSourceUnpackedness NoSourceStrictness DecidedLazy) (Rec0 Text)))) | |
data BackendHttp m Source #
Constructors
| BackendHttp | |
Fields
| |
data BackendEnv m Source #
Constructors
| BackendEnv | |
Type for backends for the PlanB token introspector.
Constructors
| Backend | |
Fields
| |
Constructors
| Conf | |
Fields | |
data ErrorResponse Source #
Contains the error response data returned from a PlanB server in case of an introspection error.
Constructors
| ErrorResponse | |
Fields | |
Instances
data IntrospectionError Source #
This type models the error scenarios specific to a token introspection attempt. These can be used as exceptions and are in fact thrown by a PlanB token introspector.
Constructors
| DeserializationFailure Text ByteString | |
| InvalidRequest ErrorResponse | |
| InvalidToken ErrorResponse | |
| Other ErrorResponse | |
| NoEndpoint |