Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Getting error while redirecting to login page in Oauth-Advance sample.

Not applicable

I downloaded the Oauth-Advanced sample from the github. Uploaded the proxies. Followed the steps given in git hub. In developer App the callback url is ushasree-test-apigee.net/web/callback

When I access the http://ushasree-test.apigee.net/web i got page with button “Login with Apigee Example Auth”.After clicking on the button I am getting error.

<strong>“{"fault":{"faultstring":"Execution of BuildLoginPageUrl failed with error: Exception thrown from JavaScript : Invalid Request: Invalid Redirect URI. (build_login_url_js#32)","detail":{"errorcode":"steps.javascript.ScriptExecutionFailed"}}}”</strong>
Url redirected after clicking button is:
<a href="https://ushasree-test.apigee.net/oauth2/authorize?client_id=IF6Zi5yOhKWANUNpNUOr9WcgVdPxAdBr&redirect_uri=https://ushasree-test.apigee.net/web/callback&response_type=code&scope=order&state=123">https://ushasree-test.apigee.net//oauth2/authorize?client_id=IF6Zi5yOhKWANUNpNUOr9WcgVdPxAdBr&redirect_uri=https://ushasree-test.apigee.net/web/callback&response_type=code&scope=order&state=123</a>
0 4 1,117
4 REPLIES 4
Top Solution Authors