Skip to content

Latest commit

 

History

History
41 lines (35 loc) · 2.15 KB

JWT-mapping-details.md

File metadata and controls

41 lines (35 loc) · 2.15 KB

Default JWT mappings

Header

  • typ - JWT
  • kid - (Key ID) unique identifier of X.509 certificate containing public key for JWT signature verification.
  • alg - RS256

Claims: Access_Token, Refresh_Token

  • iss (issuer) - issuer URI http(s)://server:port/baseurl/{organization-id}/{project-id}, string.
  • aud (audience) - ProjectId or project audience, string array.
  • sub (subject) - UserId or ClientId, string.
  • exp (Expiration Time) = iat + session duration, datetime+timezone, string
  • nbf (Not Before) = iat, datetime+timezone, string
  • iat (Issued At) = current datetime+timezone, string
  • jti (JWT ID) - unique id, random UUID string.
  • typ - toke type: Bearer | Refresh
  • scope - granted subject permissions, string array of permissionsId(s) for subject.

Claims: ID_Token

  • iss (issuer) - issuer URI http(s)://server:port/baseurl/{organization-id}/{project-id}, string.
  • aud (audience) - ClientId, string.
  • sub (subject) - Combination of 'OrganizationId/ProjectId/[UserId|ClientId]', string.
  • exp (Expiration Time) = iat + session duration, datetime+timezone, string
  • iat (Issued At) - current datetime+timezone, string
  • auth_time - timestamp of client's authentication.
  • nonce - (Nonce) - optional nonce value provided by client.

JWT signature

Issued tokens are always signed using private key of issuer. kid in JWT header must be used to get X.509 certificate via back channel for JWT signature verification.

Overriding Defaults

References