Redirect URIs based on requested origin

Hi Team,
Is it possible to configure multiple redirect uri’s as part of open id connect client configuration in keycloak ? My use case is , i have a website with multiple pages
Page 1 - http://mydomain/page1
Page 2 - http://mydomain/page2
If i am redirecting user to keycloak from first page , i need keycloak to redirect back user to first page after successful login, And if i am redirecting user to keycloak from second page , i need keycloak to redirect back user to second page after successful login and like this for all pages. Is this possible ? can someone help me for making right configuration to achieve the same.
Thanks,
Anish

2 Likes

I simply created a public client and added https://myhost.domain/* to valid redirect urls. Your desired behaviour works out of the box for me for the. Maybe you forgot to add the asterisk to the end of the redirect url pattern?

Hi,
I did the same thing, but it is always redirecting back to page1. Not considering the requested origin. Can you please help

I am also facing the same issue , i need redirect to the urls based on the client request but now every diffrent url request lands on the same page