Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace TokenAuthenticationPolicy

Validate a token present in the header or query parameter. A valid policy must specify either tokenHeader or tokenQueryParam.

Properties

Optional isAnonymousAccessAllowed

isAnonymousAccessAllowed: undefined | false | true

Whether an unauthenticated user may access the API. Must be "true" to enable ANONYMOUS route authorization.

Optional maxClockSkewInSeconds

maxClockSkewInSeconds: undefined | number

The maximum expected time difference between the system clocks of the token issuer and the API Gateway. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.

Optional tokenAuthScheme

tokenAuthScheme: undefined | string

The authentication scheme that is to be used when authenticating the token. This must to be provided if "tokenHeader" is specified.

Optional tokenHeader

tokenHeader: undefined | string

The name of the header containing the authentication token.

Optional tokenQueryParam

tokenQueryParam: undefined | string

The name of the query parameter containing the authentication token.

Const type

type: string = "TOKEN_AUTHENTICATION"

Optional validationFailurePolicy

validationPolicy

Methods

getDeserializedJsonObj

getJsonObj