Click HERE to see how Saviynt Intelligence is transforming the industry. |
on 01/10/2023 01:15 PM
There was no example present in Rest Connector Guide for configuring the Connection Json using Cookies value stored in Response Headers
The following Connection Json worked with the Cookies stored in Response Headers where the token was getting successfully generated upon expiry to be used in ImportAccountEntJson
Connection Json
{ "authentications": { "acctAuth": { "authType": "oauth2", "url": "************", "httpMethod": "POST", "httpParams": { }, "httpHeaders": { "Content-Type": "application/x-www-form-urlencoded" }, "httpContentType": "application/x-www-form-urlencoded", "expiryError": "ExpiredAuthenticationToken", "authError": [ "USER_AUTHENTICATION_FAILED", "PARTNER_AUTHENTICATION_FAILED", "AuthenticationFailed", "user_not_logged_on" ], "timeOutError": "error", "errorPath": "error", "maxRefreshTryCount": 3, "tokenResponsePath": "#HEADERS#Set-Cookie", "tokenType": "", "authHeaderName": "Cookie", "retryFailureStatusCode": [ 401 ], "accessToken": "sdfghjk" } } }