trying to call ServiceNow table REST API from SharePoint Framework (SPFx) with basic authentication with correct credentials and still getting 401 unauthorized error
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 04:29 AM
trying to call ServiceNow table REST API from SharePoint Framework (SPFx) with basic authentication with correct credentials and still getting 401 unauthorized error
I tried calling the service now rest api from postman and its working with out any issues.
however if I tried same calling from SharePoint framework (SPFx), getting 401 UNAUTHORIZED error
please let me know how to solve this issue
- Labels:
-
Integrations
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 06:23 AM
Hello,
Can you please check if the integration user has right set of roles like rest_service,itil etc in order to access the Incident table?
Please let me know after checking.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-16-2022 08:41 AM
I am using Admin role user in basic authentication and with same user, its working in postman and same is not working in SharePoint Framework (SPFx).
Note: I am also converting the credential as Base64 and passing to headers as below
var credBase64 = btoa(user + ':' + password);