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

SAP successfactor access token is expired within 10 seconds

saima
New Contributor II
New Contributor II

Hi team, 

I'm trying to integrate SAP success factor application using REST connector, 

this is my connection json:

 

{
"authentications": {
"userAuth": {
"authType": "oauth2",
"httpParamsName": "assertion",
"call": {
"call1": {
"callOrder": 0,
"url": "https://xxxxxx.sapsf.com/oauth/idp",
"httpMethod": "POST",
"httpParams": {
"client_id": "xxxxxxxx",
"user_id": "xxxxxxx",
"token_url": "https://xxxxxxx.sapsf.com/oauth/token",
"private_key": "xxxxxxxxx"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"keyPath": "",
"successResponses": {
"statusCode": [200, 201, 202, 203, 204, 205]
}
}
},
"url": "https://xxxxxx.sapsf.com/oauth/token",
"httpMethod": "POST",
"httpParams": {
"company_id": "xxxxxx",
"client_id": "xxxxxxx",
"grant_type": "urn:ietf:params:oauth:grant-type:saml2-bearer",
"assertion": "${response.call1.responseText}"
},
"httpHeaders": {
"contentType": "application/x-www-form-urlencoded"
},
"httpContentType": "application/x-www-form-urlencoded",
"authError": [
"InvalidAuthenticationToken",
"AuthenticationFailed",
"FAILURE",
"INVALID_SESSION_ID",
"ExpiredAuthenticationToken",
"Read timed out",
401
],
"retryFailureStatusCode": [400,401,403,500,501,502,503,504],
"errorPath": "errors.type",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"tokenType": "Bearer",
"accessToken": "Bearer abcdef"
}
}
}

 

as soon as I run the job to reconcile the RBP roles from target, I get the below error, 

within 12 seconds of running the job I'm getting the error "Access token expired. throwing null / [InvalidAuthenticationToken, AuthenticationFailed, FAILURE, INVALID_SESSION_ID, ExpiredAuthenticationToken, Read timed out, 401] exception for retry"

 

saima_0-1729593503451.png

 

Can anyone please suggest? if anything is missed here.

1 REPLY 1

prtkrh007
Saviynt Employee
Saviynt Employee

Could you check in postman on how long is it taking for your token to expire, Also The error that you get, Please ensure it is mapped to refresh the token