OpenmaizeJWT v0.8.1 OpenmaizeJWT.Config

This module provides an abstraction layer for configuration.

The following are valid configuration items.

nametypedefault
token_algatom:sha512
token_validityint120 (minutes)
keyrotate_daysint28

Summary

Functions

The algorithm used to sign the token

The number of days after which the JWT signing keys will be rotated

The length of time after which a JSON Web Token expires

Functions

get_token_alg()

The algorithm used to sign the token.

The default value is :sha512, and :sha256 is also supported.

keyrotate_days()

The number of days after which the JWT signing keys will be rotated.

token_validity()

The length of time after which a JSON Web Token expires.

The default length of time is 120 minutes (2 hours).