12-28-2022
11:54 AM
- last edited on
12-28-2022
02:44 PM
by
Dave
HI
we are trying to do a sap success factor connection from postman, but we are unable to make a connection with client ID , secret , link, ...do u have a working json or postman screenshot for successful connection..?
Solved! Go to Solution.
01-02-2023 02:09 AM
Hi ,
We need to use below API calls.
Step1: Get Refresh Token
Step2: Get Access Token
Use the Refresh token generated in step 1 to get access token
Step3: Get User Details
Use the access token generated in step 2 to get user details
Thanks
Rashmi
01-02-2023 02:15 AM
Hi Musthak
Connection Json
{
"authentications": {
"userAuth": {
"authType": "oauth2",
"url": "https://*******.com/oauth/token",
"httpMethod": "POST",
"httpParams": {
"company_id": "<to be filled>",
"client_id": "<to be filled>",
"grant_type": "urn:ietf:params:oauth:grant-type:saml2-bearer",
"assertion": "${refresh_token}",
"new_token": "true"
},
"httpHeaders": {},
"httpContentType": "application/x-www-form-urlencoded",
"authError": [
"Unable to authenticate the client",
"Invalid OAuth token Bearer",
"Unable to retrieve access token"
],
"retryFailureStatusCode": [
401,
403
],
"errorPath": "",
"maxRefreshTryCount": 5,
"tokenResponsePath": "access_token",
"refreshType": "RefreshToken",
"tokenType": "Bearer",
"accessToken": "Bearer <to be filled>",
"refreshToken": "<to be filled>",
"refreshTokenAuthError": [
"Unable to retrieve SAML assertion",
"The provided SAML assertion is expired",
"The SAML assertion has expired"
],
"refreshTokenErrorPath": "errorMessage",
"refreshTokenCall": {
"refreshTokenResponsePath": "",
"url": "https://*****.sapsf.com/oauth/idp",
"httpMethod": "POST",
"httpParams": {
"client_id": "<to be filled>",
"user_id": "<to be filled>",
"token_url": "https://*****.com/oauth/token",
"private_key": "<to be filled>"
},
"httpHeaders": {},
"httpContentType": "application/x-www-form-urlencoded"
}
}
}
}
01-05-2023 12:26 PM - edited 02-10-2023 10:52 AM
this is really helpful , thanks , we still have permission issue with oauth but basic is working fine from postman. also i tried to use the basic auth connection json from saviynt and it worked am able to pull the users into saviynt.