Hi,
My main requirement is when user gives un authenticated url (https:mydoimaincom/user/create) it should navigate to login and after login it should go back to the original url (https:mydoimaincom/user/create) not to the home page.
I am calling authorize api to validate and that is working fine and callback method is also working fine.
https://{domain}/oauth2/default/v1/authorize?client_id={clientID}&response_type=code&scope=openid email profile&redirect_uri={redirectUri}&state={state}
Now I would like to send and get return uri or original uri or from uri to the callback method after successful authorizaiton. So that I can redirect to the original uri…
callback method:
public async Task OktaLogin(string code, string state)
right now I am receiving only code and state. Is there any option to receive orignal uri? if so or not please suggest a way to handle this situation. I have searched a lot but couldn’t get the right one.
Please help me on this.
Thanks!!