Wildcard prefix for subdomains

Hi all,

I am looking for wildcard (Prefix, Suffix or any place)in url i.e. https://*.example.com(not working) or https://example.com/*(It’s working), can you please help me how we can achieve wildcard for dynamic url i.e. for subdomain?.

Thanks,

Wildcards in the middle of an URI string are not supported.

Also, you should start to use no wildcards at all, as the upcoming OAuth 2.1 spec version does not allow any wildcards in URIs at all.

Hi @dasniko,

Thanks for your reply, I am using Keycloak 13.0.0, will it support OAuth 2.1? if no then if I want to use wildcard like https://*.example.com then it’s failing, could you please help me for alternatives.

Waiting for your help!.

Thanks

I’m repeating myself:

And about KC13 → this is pretty old and has a lot of security issues. You should always run the most recent version to have a save and sound environment. Everything else is gross negligence.

1 Like

I must say I’m a little disappointed by this. I know you probably cannot do much about it wrt. OAuth 2.1, but I would really like to be able to intentionally (for all I care, using a five-stage “are you really sure? yes/no” dialog with a hundred exclamation marks etc. pp.) override this limitation if I really choose to do so. For example in my case where I use Keycloak on my bare-metal home-lab cluster which I do not run productively, I would like to have the option to use wildcards at least to cover my subdomains. I don’t need multiple domains, I just want to wildcard subdomains. Intentionally, being perfectly aware of the implications and possible consequences.