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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-07-2018 10:45 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-08-2018 03:31 AM
Can u show me this ? so that I can help u on it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2018 05:32 AM
@Pravnav,
I getting error "Missing redirect URL in application registration", when call the oauth_auth.do? when application registry don't have redirect URL.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-20-2018 05:37 AM
HI
Please check the below link it may help you
https://community.servicenow.com/community?id=community_question&sys_id=f3aa8b2ddb5cdbc01dcaf3231f9619be
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-13-2019 03:57 PM
The State Parameter is set using the OAuth Entity Scopes, and the Entity Profile in the related lists of the Application Registry.