Documentation
Configuration
system.config.yml
accessTokens
OAuth 2.0 related config.
This section controls Lifetime of Access Tokens issued by built in OAuth 2.0 server at during one of authorization flows as well as the type of token to be issued.
accessTokens:
timeToExpiry: 7200000
tokenType: 'jwt'
issuer: 'express-gateway'
audience: 'something'
subject: 'somebody'
secretOrPrivateKey: 'ssssst'
Parameters
timeToExpiry
: Expiration time for the tokentokenType
: Token type to be issued. It can beopaque
orjwt
issuer
: Ignored when tokenType isntjwt
. Defines the issuer to be sent in the tokenaudience
: Ignored when tokenType isntjwt
. Defines the audience to be sent in the tokensubject
: Ignored when tokenType isntjwt
. Defines the subject to be sent in the tokensecretOrPrivateKey
: Ignored when tokenType isjwt
. Defines the secret or private key used to sign the tokensecretOrPrivateKeyFile
: Ignored when tokenType isjwt
. Defines the file where the secret or private key used to sign the token is stored