sathya
December 14, 2023, 10:45am
1
Hello,
I was trying the authorization part of the API
API key, redirect url etc are all created.
Now, document says if I pass the &state query parameter while redirecting for login, I will get the response back when I receive call with the “code”
Eg:
https://api.upstox.com/v2/login/authorization/dialog?response_type=code&client_id=b109zzz-2a5d-47d0-bcbe-9bc202zzzzzz&redirect_uri=https%3A%2F%2Fz_xyz.com%2Fuser%2Flogin%2F&state=abc
But It only returned code in the response URL as below
https://z_xyz.com/user/login/?code=XZ-A08
No &state=abc is returned.
What is missing here?
shanmu
December 14, 2023, 1:41pm
2
@sathya
Upon reviewing your request, everything seems to be in order. We will proceed with a detailed investigation to ensure all aspects are thoroughly checked.
We will provide you with an update, regardless of whether we find an issue or not.
Thank you for your patience and cooperation in this matter.
shanmu
December 15, 2023, 3:10pm
3
@Sathya ,
We’ve resolved the issue on our end. Could you please check and confirm if everything is working as expected for you?
Thank you!
sathya
December 16, 2023, 3:20am
4
Thank you Shanmu for your quick and professional response.
I had used the PathParam as a workaround in my rest API and made login to work well.
Surely will try your fix and confirm.
Thanks again!
1 Like
sathya
December 21, 2023, 5:55pm
5
I verified and it’s working now with the state variable sent back in query parameter.
You can treat this thread as closed.