How to config flex OAuth sample locally?

3013
1
10-08-2013 07:25 AM
lynnwang
New Contributor II
Hi,

    I have download the sample "https://developers.arcgis.com/en/flex/sample-code/arcgis-com-web-map.htm" locally.Following the instructions, I added the oauth-callback.html and oauth-helper.js file to the project and modified the index.template.html.
   When I ran the sample and filled the username and password, it went to unexisted file or returned the message "http://localhost/sample/oauth-callback.html#error=invalid_request&error_description=Invalid%20redire...".
   What's the problem with this? Did i miss some steps? Or I should register the sample app to my Organization first?
Tags (2)
0 Kudos
1 Reply
DasaPaddock
Esri Regular Contributor
Did you register http://localhost as a valid redirect URI?
0 Kudos