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]
Versions [RSS] [faq],,,,
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 Moritz Clasmeier
Author Moritz Clasmeier
Category Security
Home page
Source repo head: git clone
Uploaded by mtesseract at 2018-05-18T20:29:37Z
Distributions NixOS:
Downloads 2164 total (15 in the last 30 days)
Rating (no votes yet) [estimated by Bayesian average]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2018-05-18 [all 1 reports]




Maintainer's Corner

For package maintainers and hackage trustees


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.