invalid redirect_uri issue OAuth Sample

4321
3
Jump to solution
04-15-2015 09:38 PM
imritanshu
New Contributor III

Hii,

I am trying to solve Oauth2Sample. I have changed client id in res/string.xml with my registered app client id.

And when i am trying to open the app it is givig error 400 invalid redirect_uri.

Please tell me if anything m missing.

Thanks

Rhitz

0 Kudos
1 Solution

Accepted Solutions
imritanshu
New Contributor III

Correct answer:

application-redirect-uri.png

Add redirect uri to "urn:ietf:wg:oauth:2.0:oob" for native application.

View solution in original post

3 Replies
JayantaPoddar
MVP Esteemed Contributor

Hi Ritanshu,

You need to mention an appropriate redirect uri in the registered app. Edit and update your registered app with appropriate redirect uri. Include both http:// and https:// prefix to avoid any further issues.

Add items—ArcGIS Online Help | ArcGIS

Hope it helps!!!

Thanks,

Jay



Think Location
imritanshu
New Contributor III

Hii Jayanta,


Thank you for responding.

I  added "urn:ietf:wg:oauth:2.0:oob" in redirect uri.

It worked fine.

Thanks.

0 Kudos
imritanshu
New Contributor III

Correct answer:

application-redirect-uri.png

Add redirect uri to "urn:ietf:wg:oauth:2.0:oob" for native application.