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 [faq] 0.1.0.0, 0.1.1.0, 0.1.2.0, 0.1.3.0, 0.1.4.0
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
Maintainer mtesseract@silverratio.net
Category Security
Home page https://github.com/mtesseract/planb-token-introspection#readme
Source repo head: git clone https://github.com/mtesseract/planb-token-introspection
Uploaded by mtesseract at Fri May 3 12:55:43 UTC 2019
Distributions NixOS:0.1.4.0, Stackage:0.1.4.0
Downloads 503 total (70 in the last 30 days)
Rating (no votes yet) [estimated by rule of succession]
Your Rating
  • λ
  • λ
  • λ
Status Hackage Matrix CI
Docs available [build log]
Last success reported on 2019-05-03 [all 1 reports]

Modules

[Index] [Quick Jump]

Downloads

Maintainer's Corner

For package maintainers and hackage trustees


Readme for planb-token-introspection-0.1.4.0

[back to package description]

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.