Announcing the Saviynt Knowledge Exchange unifying the Saviynt forums, documentation, training,
and more in a single search tool across platforms. Read the announcement here.

Rest connection using JWT

NM
Regular Contributor III
Regular 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

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 you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular 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?

No


Regards,
Rushikesh Vartak
If you find the response useful, kindly consider selecting Accept As Solution and clicking on the kudos button.

NM
Regular Contributor III
Regular 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"

 

NM
Regular Contributor III
Regular Contributor III

Hi @rushikeshvartak , anything in above query?

Thanks

NM
Regular Contributor III
Regular Contributor III

@rushikeshvartak , Anything on above query?