If access token gets expired, what error/code should we expect from ServiceNow?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-18-2015 04:55 PM
We are using ServiceNow for authentication for another third party app. We are using oauth token. While using the app, after sometime, we get pop up window comes up for login. I believe this happens because the access token gets expired after certain time. We need to know what code/error ServiceNow sends back when the the access token gets expired?
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-19-2015 12:57 AM
Hi Dewan,
I believe ServiceNow sends a HTTP 401 error response, something like;
http:/1.1 401 Unauthorized with code: 401
Regards,
Sergiu
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-25-2015 07:28 PM
Hi Sergiu
Thanks for your response.
However, I have also noticed ServiceNow logs the following for access token expiration:
Oauth authentication failed for access token:
{access token string}
Can we pass different code for access token expiration or the log entry to the client?
Thanks
Dewan