@hackage planb-token-introspection0.1.4.0
Token Introspection for PlanB
Categories
License
BSD-3-Clause
Maintainer
mtesseract@silverratio.net
Links
Versions
Installation
Dependencies (12)
- aeson
- aeson-casing
- base >=4.7 && <5
- bytestring
- containers
- http-client Show all…
Dependents (1)
@hackage/acme-everything
Token Introspection for PlanB

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.