BSD-3-Clause licensed by Moritz Clasmeier
Maintained by [email protected]

Module documentation for

This version can be pinned in stack with:[email protected]:97aa2e161d90dd1cf9b13789f1b2a2012d63567cbaa69a60170836bedac6f7a1,2371

Token Introspection for PlanB Hackage version Stackage version Build Status

This package provides token introspection functionality for PlanB.


printTokenInfo :: ByteString -> IO ()
printTokenInfo token = do
  introspector <- "https://planb-endpoint"
  tokenInfo <- PlanB.introspectToken introspector token
  print tokenInfo

If the PlanB introspection endpoint to use can be retrieved from the environment variable PLANB_INTROSPECTION_ENDPOINT, then one can alternatively use

  introspector <- PlanB.newFromEnv Nothing

for creating the PlanB introspector.