Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Oauth2 authorization url generated by ServiceNow appending extra "&" to response_type

manasi7
Kilo Contributor

We are using OAUTH2 for REST messaging and "authorization code" as a grant type.

Our authorization URL is : https://our_authorization_server/oauth2/authorize

The URL generated by ServiceNow to get the OAuth token is as follows :

https://our_authorization_server/oauth2/authorize

?&response_type=code

&redirect_uri=https://dev1234.service-now.com/oauth_redirect.do&client_id=1234585885869459430303003

The issues we are facing is :

1] &response_type=code

The parameter response_type has "&" prepended to it , which causes our authorization API to fail.

2] value of parameter "state" is not being set in the URL.

How can we set value for parameter "state" in ServiceNow.

Thanks! In advance

Message was edited by: Manasi Amale

8 REPLIES 8

Can u show me this ? so that I can help u on it


@Pravnav,

     I getting error "Missing redirect URL in application registration", when call the oauth_auth.do? when application registry don't have redirect URL.

HI 

Please check the below link it may help you

https://community.servicenow.com/community?id=community_question&sys_id=f3aa8b2ddb5cdbc01dcaf3231f9619be

Bill Nolan
Tera Contributor

The State Parameter is set using the OAuth Entity Scopes, and the Entity Profile in the related lists of the Application Registry.