JSON Web Token Authentication for CA SSO Authentication

Layer7 API Gateway
supports JSON Web Token (JWT) as one of the authentication types for CA SSO authentication. This feature enables Gateway to send JWT token for authentication against CA SSO.The following use cases show different ways of using the JWT token and use this token for authentication against CA SSO:
For the following uses cases, JWT payload is constructed by extracting the username after authenticating with any identity provider.
  • Http basic authentication using CA Single Sign-On assertions
  • Certificate based client authentication using CA Single Sign-On assertions
  • SAML token authentication using CA Single Sign-On assertions
  • Kerberos token authentication using CA Single-On assertions
JSON Web TokenJSON Web Token (JWT) is a standard (RFC 7519) which are used for authentication and information exchange to securely transmit data between parties. A JWT can be signed, encrypted, or both. The information in a JWT is encoded as a JSON object.A signed JWT contains the following three parts separated by dots (.).
  • Header
  • Payload
  • Signature
  • Header:
    Header is the first part of the token. The header typically consists of two parts: the type of token (JWT), and the signature algorithm used for signing the token (RS256). Another field Kid (Key ID) is used to mention the certificate alias used for signing the token.
  • Payload:
    Payload is the second part of the token. The payload contains the claims for authenticating CA SSO. Sub (subject), exp (expiration time) and iat (Timestamp when the JWT was issued) are some of the reserved claims.
  • Signature:
    Signature is the third part of the token. To create the signature part, you must take the encoded header, the encoded payload, a secret. The token is signed by the algorithm that is specified in the header.
The sample of signed JWT is as follows:
  • aaa: specifies the header part.
  • rrr: Specifies the payload part.
  • ttt: Specifies the signature part.
is the header part of the JWT token. If you decode the header part, the output appears as
is the payload part of the JWT token. If you decode the payload part from the above example, the output appears as:
is the signature part of the JWT token. The signed hash data is generated by using encoded header, encoded payload. This token is signed by the algorithm that is mentioned under header 'arg' field.