How to have direct access to the registration page?

Hi :raised_hand_with_fingers_splayed:,

We’re currently developping a new web application that will use Keycloak to enable authentication on our platform.
Most of our future users won’t have a valid account on their first attempt and we would like to redirect them to the registration page by default (instead of the login page).

Our client app uses .well-known/openid-configuration to discover exposed endpoints (authorization, token,…) but this url does not contain a “registration_endpoint” that could match our needs.

Some posts found on several forums propose to use the authorization_endpoint and to replace the final “auth” string by “registrations” but we would like to find a more satisfying solution.

Have you ever met this kind of need ? Would you have some interesting suggestions ?

Thanks in advance :slight_smile:

Are you using the Javascript adapter? If so, you can call the register or createRegisterUrl methods to generate the URL.

Otherwise, I don’t know of a convenient way to generate it.

1 Like

Many thanks @xgp ! I’m going to verify this.
I was rather looking for a solution with auth flow, if existing… but did not find any until now.