Saviynt unveils its cutting-edge Intelligence Suite products to revolutionize Identity Security!
Click HERE to see how Saviynt Intelligence is transforming the industry.
Saviynt Copilot Icon

Rest connection using JWT

NM
Honored Contributor III
Honored Contributor III

Hi Team,

We have a requirement to authenticate to an application using JWT.

I have gone through the developer guide for JWT authentication.In our case we have to pass JWT token in all the subsequent call(get,Post) and application team has provided us with private key to do so..

Do we have a variable exposed for computed JWT value which we can use in other json to pass JWT token value.

Any help is much appreciated!

Thanks


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'
6 REPLIES 6

rushikeshvartak
All-Star
All-Star
{
  "authentications": {
    "acctAuth": {
      "authType": "Jwt",
      "httpParamsName": "assertion",
"jwtConfig": {
        "jwtHeader": {
          "alg": "<specify algorithm>",
          "typ": "JWT",
          "kid": "<specify key ID>"
        },
        "jwtPayload": {
          "iss": "<specify ISS>",
          "sub": "<specify subject>",
          "aud": "<specify audience>",
          "scope": "https://www.googleapis.com/auth/admin.directory.user https://www.googleapis.com/auth/admin.directory.group https://www.googleapis.com/auth/admin.directory.domain"
        },
        "signedAlgorithm": "<specify signed algorithm>",
        "key": "<specify key>",
        "jwtExpiryDuration": 120
      },
      "url": "<specify URL>",
      "httpMethod": "POST",
      "httpParams": {
        "grant_type": "urn:ietf:params:oauth:grant-type:jwt-bearer"
      },
      "httpContentType": "application/x-www-form-urlencoded",
      "retryFailureStatusCode": [
        401,
        500,
        400
      ],
      "authError": [
        "SESSION_NOT_VALID",
        "AuthenticationFailed",
        "ExpiredJwtException",
        "401 Unauthorized",
        "401",
        "You couldn't be authenticated"
      ],
      "errorPath": "code",
      "maxRefreshTryCount": 5,
      "tokenResponsePath": "access_token",
      "tokenType": "Bearer",
      "accessToken": ""
    }
  }
}

Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor III
Honored Contributor III

Hi @rushikeshvartak, so signed bearer token will be sent to post call to retrieve access token which will be utilized in subsequent call but is there a way we can use the signed token in other json?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

No


Regards,
Rushikesh Vartak
If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'.

NM
Honored Contributor III
Honored Contributor III

@rushikeshvartak, so does it compute and pass it internally and we can't reference it? what does this variable do?"

httpParamsName": "jwt_token"

 


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

NM
Honored Contributor III
Honored Contributor III

Hi @rushikeshvartak , anything in above query?

Thanks


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'

NM
Honored Contributor III
Honored Contributor III

@rushikeshvartak , Anything on above query?


If this helped you move forward, click 'Kudos'. If it solved your query, select 'Accept As Solution'