Can I get the client ID from OAuth 2.0 Application Registry from the Scripted REST API script.

atanas2d
Giga Contributor

Hey,

I'm trying to use OAuth 2.0 configuration for my application to setup access to Scripted REST APIs.

 

I see there is Client ID and a Client Secret in the Application Registry. As I understand, these are unique and my purpose is to understand who is accessing the API in order to provide him different access. 

 

Is this possible with Application Registry, or the idea of it is to just setup the access for the Scripted REST API (s) for all the users? 

How can I differentiate the consumers of my Scripted REST API endpoint? 

1 REPLY 1

Ankur Bawiskar
Tera Patron
Tera Patron

@atanas2d 

but why you want to get it?

Those are meant to be shared with 3rd party so that they can get the token first and then use the actual scripted REST API endpoint with this token to get the task done by that API

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader