Skip to main content
Feedback

Design and Implementation

Policy Structure

Refer to the API Policy Structure.

Important Points about Policy Structure

Refer to the API Policy Important Points about Policy Structure.

Policy Usage

Refer to the API Policy Policy Usage.

Claims Verification Policy Parameters

  • Name: This field contains the policy name. In case of JWT claims verification policy, it is always "JWTClaimsVerificationPolicy".

  • TokenExpiryOverride: This field defines time which overrides JWT expiry time.

  • Iss: This field defines Issuer of the JWT.

  • Aud: This field defines recipient for which the JWT is intended.

  • NonStandardClaims: This field defines non standard claims to be match with JWT claims.

JWT Claims Structure Under JWT Token Object

JWT Standard Claims

  • iss (issuer): Issuer of the JWT

  • sub (subject): Subject of the JWT (the user)

  • aud (audience): Recipient for which the JWT is intended

  • exp (expiration time): Time after which the JWT expires

  • nbf (not before time): Time before which the JWT must not be accepted for processing

  • iat (issued at time): Time at which the JWT was issued; can be used to determine age of the JWT

  • jti (JWT ID): Unique identifier; can be used to prevent the JWT from being replayed (allows a token to be used only once)

Error Messages

This section lists error messages that are specific to JWT Claims Validation Policy. For a complete list of error messages.

Error NameHTTP Status CodeCause
InvalidJWTClaimsPolicyArgumentTokenExpiryOverride403Token Expiry Override is not correct.
JWTClaimsPolicyArgumentTokenExpiryOverrideNotSpecified403Token Expiry Override is not specified.
InvalidJWTClaimsPolicyArgumentNonStandarnClaims403Defined Non Standard Claims are not correct.
JWTClaimsPolicyArgumentNonStandarnClaimsNotSpecified403Non Standard Claims are not specified.
InvalidJWTClaimsPolicyArgumentAudience403Defined Audience details are not correct.
JWTClaimsPolicyArgumentAudienceNotSpecified403Audience details are not specified.
InvalidJWTClaimsPolicyArgumentIssuer403Defined Issuer details are not correct.
JWTClaimsPolicyArgumentIssuerNotSpecified403Issuer details are not specified.
NonStandardClaimIsNotAuthorized403Non Standard Claim is not authorized.
AudIsNotAuthorized403Audience is not authorized.
AudNotConfiguredInJWTToken403Audience is not configured in the incoming JWT token.
InvalidIssWithMultipleValues403Incoming JWT token Issuer claim have multiple values.
IssNotAuthorized403Issuer is not authorized.
IssNotConfiguredInJWTToken403Issuer is not configured in the incoming JWT token.
IatGreaterThanCurrentTime403Time at which the JWT was issued is greater than current time.
IatGreaterThanExpTime403Time at which the JWT was issued is greater than expiry time.
IatIsNonNumeric403Time at which the JWT was issued is non numeric integer.
TokenNotAllowedBeforeNbf403Token not allowed before Nbf.
NbfIsNonNumeric403Nbf is non numeric integer.
ExpIsNonNumeric403Expiry time is non numeric integer.
TokenExpiryOverrideOrIatIsNonNumeric403Token Expiry Override or JWT Issued time is non numeric integer.
TokenExpired403JWT token is expired.

Business Rules Assumptions

The following scenarios are not supported in the policy:

  • If API Key is passed in JWT token payload.

  • If non-standard claims are passed as array in JWT token payload.

On this Page