planb-token-introspection-0.1.1.0: Token Introspection for PlanB

Safe HaskellNone
LanguageHaskell2010

Network.PlanB.Introspection

Synopsis

Documentation

data Conf m Source #

new :: (MonadThrow m, MonadIO m) => Text -> m (TokenIntrospector m) Source #

Create a new PlanB introspector using the provided endpoint.

newWithManager :: (MonadThrow m, MonadIO m) => Maybe Manager -> Text -> m (TokenIntrospector m) Source #

Create a new PlanB introspector using the provided endpoint and manager.

newFromEnv :: (MonadThrow m, MonadIO m) => Maybe Manager -> m (TokenIntrospector m) Source #

Convenience function. Create a new PlanB introspector using the provided manager. The PlanB server to use is retrieved from the environment variable PLANB_INTROSPECTION_ENDPOINT.

newWithBackend :: (MonadThrow m, MonadIO m) => Backend m -> Text -> m (TokenIntrospector m) Source #

Create a new PlanB introspector using the provided backend and endpoint.

introspectToken :: TokenIntrospector m -> ByteString -> m TokenInfo Source #

Introspect the provided token