Click HERE to see how Saviynt Intelligence is transforming the industry. |
01/19/2024 02:38 AM - edited 01/19/2024 04:37 AM
Hi,
Can someone elaborate on the use of expiryError and autherror?
Does expiryerror comes into picture when all the "maxrefreshtrycount" completed and it showcase the error mentioned in the parameter?
Does autherror checked the response to retry the connection again with application?
Thanks!
01/19/2024 05:38 AM
ExpiryError typically occurs when a token or authentication session has expired. It may be triggered after reaching the maximum refresh try count, indicating unsuccessful attempts to refresh the token. AuthError, on the other hand, suggests an authentication-related issue. It doesn't automatically retry the connection; you might need to handle it by refreshing tokens or re-authenticating based on the specifics of your application's logic.
01/19/2024 06:08 AM
Value we add in "expiryerror" should match to the one we received from api response or after the certain number of tries if we don't get a response the mentioned value gets displayed automatically in Saviynt UI and logs?
"expiryError": "ExpiredAuthenticationToken"
from the developers guide, it says displayed
Use Case -
if i have an API which gives 200 status code for all the API calls, how can i instruct Saviynt to retry the call? and should i mention the same in authError.
"authError": [
"AuthenticationFailed",
"401 Unauthorized"
]
Thanks
01/20/2024 08:50 AM
Yes you can mention. API should ideally respond proper http codes