planb-token-introspection: Token Introspection for PlanB

[ bsd3, library, security ] [ Propose Tags ]

This package provides token introspection functionality for the PlanB token provider.

[Skip to Readme]


Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees


  • No Candidates
Versions [RSS],,,,
Dependencies aeson, aeson-casing, base (>=4.7 && <5), bytestring, containers, http-client, http-client-tls, http-types, mtl, safe-exceptions, text, transformers [details]
License BSD-3-Clause
Copyright (c) 2018, 2019 Moritz Clasmeier
Author Moritz Clasmeier
Category Security
Home page
Source repo head: git clone
Uploaded by mtesseract at 2019-05-03T12:55:43Z
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2456 total (17 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Docs available [build log]
Last success reported on 2019-05-03 [all 1 reports]

Readme for planb-token-introspection-

[back to package description]

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.