The ID Token

An overview of the ID Token.

The result of a successful OpenID Connect flow is the ID Token, which is built using the industry standard JSON Web Token (JWT) format ( JSON Web Tokens consist of three parts separated by dots (.), which are:
• Header
• Payload
• Signature

Therefore, a JWT typically looks like the following.

{ "id_token" : "xxx.yyy.zzz" }


The header typically consists of two parts: the type of the token, which is JWT, and the hashing algorithm being used. The AXN uses RS256 for token signatures.

For example:

  "alg": "RS256",
  "typ": "JWT"

Then, this JSON is Base64Url encoded to form the first part of the JWT.


The second part of the token is the payload, which contains the claims. Claims are statements about an entity (typically, the user) and additional metadata. An example of an AXN generated payload is:

    "sub": "739902e7-c616-48bb-831b-4a8c563d013d",
    "userAssertionList": [{
        "assertions": [{
            "link.fullName_address": "pass"
        }, {
            "link.fullName_phone": "pass"
        "dateAsserted": "08/17/2017 14:56:08 EDT",
        "provider": "Experian",
        "serviceOffering": "Experian Precise ID"
    "userAttributes": [{"values": [{
            "fname": "mark"
        }, {
            "mname": "c"
        }, {
            "lname": "coleman"
        "dateCreated": "08/17/2017 14:56:08 EDT",
        "attributeType": "FullName"
    }, {
        "values": [{
            "street_number": "2108"
        }, {
            "route": "Floyd Avenue"
        }, {
            "subpremise": "apartment B"
        }, {
            "locality": "Richmond"
        }, {
            "postal_code": "23220"
        }, {
            "administrative_area_level_1": "VA"
        }, {
            "country": "US"
        "dateCreated": "08/17/2017 14:56:08 EDT",
        "attributeType": "InternationalAddress"

The payload is then Base64Url encoded to form the second part of the JSON Web Token.


The signature is used to verify that the sender of the JWT is who it says it is and to ensure that the message wasn't changed along the way. ID DataWeb signs all tokens with the RSA256 algorithm, which is an example of asymmetric cryptography. This means that to verify the signature, you will need to use a public key, and the appropriate signature verification algorithm.

Verifying the JWT Signature

It is highly recommended that your application verifies the signature of the JSON Web Token before trusting any of the data it contains.

The AXN provides it's signing keys in industry standard JWK format at the following URL:

    "keys": [{
        "kty": "RSA",
        "alg": "RS256",
        "use": "sig",
        "kid": "1",
        "n": "n5H8ZKqOqW-4cL0x1JlfyVZTyhplaOQLslbsPFr_cub_KELYKt8_eZ5PsuIhpENmU1TrM082PFO4rEut1et6mDr_ia34qmkKJAqv4VI95agNArA23UoIDYPnBGvmXEJI0JIxp514N5X8NcRBVjK9DPaYW-f-S4kFO-xSJvSKh0-RUo3jnL29rZBlhXrw0YTFrY5cJ9haXJfQsvzMlXcHNX7hN_EMJI4pg12A65o8QgEyp7ZZ_izDH-IRCQmsgj6ZYq2aKHDsms5jgR_Zryno_G7oyuTFl1yJjLgfmK002D-ZWWiCQDKj4P1qzXX2TzKHiJw-ak755rQCrdH8IqSFUw",
        "e": "AQAB",
        "value": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAn5H8ZKqOqW+4cL0x1JlfyVZTyhplaOQLslbsPFr/cub/KELYKt8/eZ5PsuIhpENmU1TrM082PFO4rEut1et6mDr/ia34qmkKJAqv4VI95agNArA23UoIDYPnBGvmXEJI0JIxp514N5X8NcRBVjK9DPaYW+f+S4kFO+xSJvSKh0+RUo3jnL29rZBlhXrw0YTFrY5cJ9haXJfQsvzMlXcHNX7hN/EMJI4pg12A65o8QgEyp7ZZ/izDH+IRCQmsgj6ZYq2aKHDsms5jgR/Zryno/G7oyuTFl1yJjLgfmK002D+ZWWiCQDKj4P1qzXX2TzKHiJw+ak755rQCrdH8IqSFUwIDAQAB\n-----END PUBLIC KEY-----"

Using the data from this URL, your application must construct a PEM format public key using the Modulus / exponent values (P & E.) Once you have constructed the PEM, you'll need to verify the signature of the JSON Web Token.



Use Open Source Libraries!

It is highly recommended that you do not write your own cryptographic libraries. Instead, there are many excellent open source libraries available to assist with both constructing the RS256 public key in PEM format from ID DataWeb's JWK, and using it to verify the signature of the JWT:
JWK Libraires:
JWT Signature verification libraries:

Putting all together
The output is three Base64 strings separated by dots that can be easily passed in HTML and HTTP environments, while being more compact when compared to XML-based standards such as SAML.