access-token-provider alternatives and similar packages
Based on the "Data" category.
Alternatively, view access-token-provider alternatives based on common mentions on social networks and blogs.
-
semantic-source
Parsing, analyzing, and comparing source code across many languages -
lens
Lenses, Folds, and Traversals - Join us on web.libera.chat #haskell-lens -
hnix
A Haskell re-implementation of the Nix expression language -
text
Haskell library for space- and time-efficient operations over Unicode text. -
code-builder
Packages for defining APIs, running them, generating client code and documentation. -
unordered-containers
Efficient hashing-based container types -
compendium-client
Mu (μ) is a purely functional framework for building micro services. -
massiv
Efficient Haskell Arrays featuring Parallel computation -
cassava
A CSV parsing and encoding library optimized for ease of use and high performance -
holmes
A reference library for constraint-solving with propagators and CDCL. -
hashable
A class for types that can be converted to a hash value -
resource-pool
A high-performance striped resource pooling implementation for Haskell -
binary
Efficient, pure binary serialisation using ByteStrings in Haskell. -
primitive
This package provides various primitive memory-related operations. -
json-autotype
Automatic Haskell type inference from JSON input -
discrimination
Fast linear time sorting and discrimination for a large class of data types -
network-msgpack-rpc
A MessagePack-RPC Implementation -
hashtables
Mutable hash tables for Haskell, in the ST monad -
certificate
Certificate and Key Reader/Writer in haskell -
audiovisual
Extensible records, variants, structs, effects, tangles -
reflection
Reifies arbitrary Haskell terms into types that can be reflected back into terms -
IORefCAS
A collection of different packages for CAS based data structures. -
dependent-map
Dependently-typed finite maps (partial dependent products) -
dependent-sum
Dependent sums and supporting typeclasses for comparing and displaying them -
streaming
An optimized general monad transformer for streaming applications, with a simple prelude of functions -
orgmode-parse
Attoparsec parser combinators for parsing org-mode structured text! -
bifunctors
Haskell 98 bifunctors, bifoldables and bitraversables -
text-icu
This package provides the Haskell Data.Text.ICU library, for performing complex manipulation of Unicode text. -
protobuf
An implementation of Google's Protocol Buffers in Haskell. -
avro
Haskell Avro Encoding and Decoding Native Support (no RPC) -
safecopy
An extension to Data.Serialize with built-in version control -
scientific
Arbitrary-precision floating-point numbers represented using scientific notation -
uuid
A Haskell library for creating, printing and parsing UUIDs -
uuid-types
A Haskell library for creating, printing and parsing UUIDs
Access the most powerful time series database as a service
Do you think we are missing an alternative of access-token-provider or a related project?
README
Access Token Provider

This package provides a convenient retrieval mechanism for access tokens. Multiple provider backends, including OAuth2 Resource Owner Password Credentials Grant, file-based token access (e.g. for Kubernetes) and fetching tokens from the environment (e.g. for local testing) are supported; custom provider backends can easily be added.
Examples
import qualified Security.AccessTokenProvider as ATP
retrieveSomeToken :: IO ()
retrieveSomeToken = do
tokenProvider <- ATP.new (AccessTokenName "token-name")
token <- ATP.retrieveAccessToken tokenProvider
print token
Configuration
Configuration is done by setting certain environment variables, depending on the provider.
OAuth2 based token retrieval
The OAuth2 (Resource Owner Password Credentials Grant) provider
expects the ATP_CONF_ROPCG
environment variable to contain a JSON
object as follows:
{
"credentials_directory": "/optional/credentials/directory",
"auth_endpoint": "<OAuth2 authentication endpoint>",
"tokens": {"token-name": {"scopes": ["first-scope", "second-scope"]}}
}
The credentials_directory
setting defaults to the content of the
environment variable CREDENTIALS_DIR
. It is expected to contain the
files user.json
and client.json
, containing the user and client
credentials respectively.
File based token retrieval (e.g. for Kubernetes)
The file based provider expects the ATP_CONF_FILE
environment
variable to contain a JSON object as follows:
{
"tokens": {"token-name": "/some/file/name"}
}
As a short cut, you can simply save a token path directly in the
environment variable TOKEN_FILE
.
Environment based token retrieval (e.g. for testing)
The file based provider expects the ATP_CONF_FIXED
environment
variable to contain a JSON object as follows:
{
"tokens": {"token-name": "some-fixed-token"}
}