How to use OATH Token instead of username password for REST API

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 08:53 PM
We are developing an integration with one of our custom apps that will communicated through REST API to ServiceNow. Our security team advised us not to use username/password to authenticate and use OATH Token if possible. How can we do it? Our REST commands are issued via javascript.
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 09:12 PM
Hi,
Refer below link,
https://community.servicenow.com/community?id=community_blog&sys_id=a1fce2a5dbd0dbc01dcaf3231f961939
Regards,
Shweta K
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2018 05:04 AM
Hi,
If you find the solution please mark it as correct and close the thread.
Regards,
Shweta k
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-08-2018 09:19 PM
1) ServiceNow can act as OATUH provider. You need to create an OAUTH provider entry, share key and client_id with customer and URL for getting OAUTH token.
2) Customer can get the token based on expiry time what we set in ServiceNow. Customer need to include Authorization header value as "Bearer 'tokenValueGoesHereWithoutSingleQuotes' "
This should establish the connection between two system via OAUTH
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-29-2018 05:04 AM
Hi,
If you find the solution please mark it as correct and close the thread.
Regards,
Shweta k