Select to view content in your preferred language

invalid redirect_uri issue OAuth Sample

4502
3
Jump to solution
04-15-2015 09:38 PM
imritanshu
Regular Contributor

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
Regular Contributor

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
Regular Contributor

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
Regular Contributor

Correct answer:

application-redirect-uri.png

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