View Source API Reference prima_auth0_ex v0.9.1

Modules

Handles the retrieval of token from Auth0 and their verification/validation.

Plug that reads the permissions from the JWT passed in the Authorization header and stores them in the Absinthe context, so that they can be accessed by the PrimaAuth0Ex.Absinthe.RequirePermissions middleware.

Absinthe middleware that ensures that the client has the required JWT permissions to access the GraphQL field. If this is not the case, it returns an unauthorized error.

Credentials to access Auth0

Configuration wrapper

Strategy used by Joken to obtain JWKS from Auth0.

Simple ETS counter based state machine

Utilities to help working with prima_auth0_ex on a local environment, without the need to integrate with Auth0.

Plug to verify and validate bearer tokens

A pre-defined module which sets up telemetry with a given reporter

A pre-defined telemetry handler

Module to verify the integrity and validate the claims of tokens.

Behaviour that defines a cache for tokens.

Implementation of PrimaAuth0Ex.TokenCache that persists tokens on aws dynamodb

Implementation of PrimaAuth0Ex.TokenCache that persists encrypted copies of tokens on Redis.

Implementation of PrimaAuth0Ex.TokenCache that stores tokens in memory. The cache is shared between nodes.

Implementation of PrimaAuth0Ex.TokenCache that doesn't persist tokens at all.

Module to perform authenticated symmetric encryption of tokens.

GenServer that handles the storage and refresh of tokens.

Fetches key ids (aka kids) from Auth0 JWKS

Behaviour to handle communications with an authorization service.

Implementation of PrimaAuth0Ex.TokenProvider.TokenService that caches tokens on an external cache in order to limit the requests made to Auth0 by reusing tokens.

Behaviour to fetch key ids (aka kids) from a JWKS server

Implementation of PrimaAuth0Ex.TokenProvider.RefreshStrategy that relies on a probabilistic approach to decide whether to refresh a token.

Behaviour to define a strategy to decide whether to refresh a token or keep using it for some more time.

Information related to a JWT, including the JWT itself and additional metadata

Behaviour to deal with retrieval and refresh of tokens