sn_auth.GlideOAuthClient() help

Ketan Pandey
Tera Expert

HI Team,

 

Can you please help me  here :-

 

var oAuthClient = new sn_auth.GlideOAuthClient();
    var requestorId =  what should be the value 
    var entityProfile = what should be the value
    Thank You,
    Ketan
6 REPLIES 6

Ankur Bawiskar
Tera Patron
Tera Patron

@Ketan Pandey 

responses inline, please share complete script

var oAuthClient = new sn_auth.GlideOAuthClient();
var requestorId =  ''; // sys_id of oauth_2_0_credentials record

var entityProfile = '' ; // sysid of the oauth entity profile record

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

@Ankur Bawiskar  Please correct me I will have to configuire the Oauth Provider profile from System Oauth registery first, and type should be Oauth Provider 

@Ketan Pandey 

Thank you for marking my response as helpful.

Yes that's correct and it will have OAuth entity profile record under it.

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

@Ketan Pandey 

Thank you for marking my response as helpful.

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