planb-token-introspection: Token Introspection for PlanB

[ bsd3, library, security ] [ Propose Tags ] [ Report a vulnerability ]

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


[Skip to Readme]

Downloads

Maintainer's Corner

Package maintainers

For package maintainers and hackage trustees

Candidates

  • No Candidates
Versions [RSS] 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 2019-05-03T12:55:43Z
Distributions
Reverse Dependencies 1 direct, 0 indirect [details]
Downloads 2500 total (13 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-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.