Click HERE to see how Saviynt Intelligence is transforming the industry. |
05/07/2024 04:03 AM - edited 05/07/2024 10:43 AM
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
05/07/2024 07:59 PM
{
"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": ""
}
}
}
05/07/2024 08:13 PM
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?
05/07/2024 08:25 PM
No
05/07/2024 08:45 PM
@rushikeshvartak, so does it compute and pass it internally and we can't reference it? what does this variable do?"
httpParamsName": "jwt_token"
05/08/2024 06:27 AM
Hi @rushikeshvartak , anything in above query?
Thanks
05/08/2024 09:41 PM
@rushikeshvartak , Anything on above query?