Configure Custom Doamin or Sub-Domain For Realm

33 views
Skip to first unread message

Code Vibes

unread,
Jun 12, 2024, 3:51:24 AMJun 12
to Keycloak Dev
Hi Team,

I need help i'm stuck in between keycloak.
I have multi-realm approach, which means separate realms, separate domain for logn

For example
my keycloak is deployed to "https://dev-idp.example.com."

Now i have 3 clients with their respective domains and subdomains
for example

Subdomain : {test} it can be anything based on client requirements
Client 1 want this url for the login page : https://test.examlpe.com
Client 2 want this url for the login page : https://demo.examlpe.com

Domain : it can be anything based on client requirements
Client 3 want this url for the login page : https://online.kpu.org
As login page

My question is: can we have different domains for different realms?


Problem : but i get this url
https://dev-idp.example.com/realms/test-realm/protocol/openid-connect/auth?client_id=account-console&redirect_uri=https%3A%2F%2Fdev-idp.example.com%2Frealms%2Ftest-realm%2Faccount%2F%23%2F&state=c1079327-38e3-45b1-8267-fc20bb7f2e40&response_mode=fragment&response_type=code&scope=openid&nonce=f70aecb7-7eb6-4546-839f-50599949eaee&code_challenge=lcLQUcUcZR2VpOWEVKCJ6kDV4JZJvAdFxKzuzQA1QmY&code_challenge_method=S256

This is login url for test-realm realm
i want this url to be customized without using reverse proxy 
i.e. 

Reply all
Reply to author
Forward
0 new messages