Issue with 3 legged OAuth

Hi,

I am new to Apigee, worked on a few scenarios and played with few basic policies. I am currently working on 3 legged OAuth scenario and facing issue with the use case.

Error message:

{"ErrorCode" : "invalid_request", "Error" :"Redirection URI is required"}

I have completed both the pre-requests that are mentioned in the below sample and neither of the cases provide the step to update the callback URI. i am not sure if i missed any of the step or overlooked.

As per the testing i am able to see the login page and login with the UN/PWD and see the response page to provide authorization rights. On click of submit I see this error. Any help related to this will be helpful .

Sample use case:

https://github.com/apigee/apijam/tree/master/Labs/Appendix/API%20Security%20-%20Securing%20APIs%20wi...

Thanks,

Aswin.

0 3 385
3 REPLIES 3

Hello @AswinBalakrishnan - You need to provide the callback URL as part of your App configuration.

For e.g. Let's say your callback URL is http://www.google.com. After you submit the consent page, you will be redirected to google.com page with Authorization code in the URL.

6420-callback-url.png

It's not clearly described in the API Jam documentation. We will update the docs. Sorry about the inconvenience.

Thanks,

Sudhee

Not applicable

Hello @AswinBalakrishnan If you are trying OAuth 2.0 With Grant Type 'Authorization Code' then you need to get the Auth Code using the following queryparams in a GET Request : client_id, response_type=’code’, redirect_uri

You can also configure the redirect_uri as CallBack URL on Apps as suggested by Sudhee Sreedhara