Skip to content

mtesseract/planb-token-introspection

Repository files navigation

Token Introspection for PlanB Hackage version Stackage version Build Status

This package provides token introspection functionality for PlanB.

Example

printTokenInfo :: ByteString -> IO ()
printTokenInfo token = do
  introspector <- PlanB.new "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.

About

PlanB Token Introspection

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published