Use regular expression in redirect uri

Is it possible to extend keycloak to accept regular expressions for the redirect Uri. The reason. We have a lot of environments where only the hostname is different. Example: https://environmentX.domain.com/application/

I looked in the redirectutils library where this logic hides and the only thing I could find is a * or a /* in the end as part the redirect uri. For my environments I need to specify up to 30 different URLs per application.

I like to change the URL to something like “environment\d.domain.com/application” as an example of a regex.

Idea’s how to make this more flexible/workable?

1 Like

We have a similar need.

Unless someone advises not to, we will create a feature request about it.

Was this finally implemented? @mrfrox did you post the feature request?