Can I link to the self registration URL from my app?
-
I have enabled the "Self service registration" feature for my app, meaning Users have a button to create a new account in the login form. Clicking this button redirects to a different URL where the registration form is shown, the URL looks like
/oauth2/register?tenantId=xxxyyyzzz&client_id=aaabbbcccnonce=&pendingIdPLinkId=&redirect_uri=http%3A%2F%2Flocalhost%2Fmy-callback&response_mode=&response_type=code&scope=&state=&metaData...
Can I safely put a "Sign up" button in my app that points to this registration form URL, is there some documentation of what params are supported?
Thanks
-
If you click on the application magnifying icon and then look under integration details, you will get a generated link very similar to what you have above. This link can be inserted into your application and used to push users into a registration flow.
Thanks,
Josh -
-
If you see an error message like
https://YOURFUSIONAUTHSERVER/en?error=invalid_request&error_reason=missing_code_challenge&[…]The+request+is+missing+a+required+parameter%3A+code_challenge
it is because you have required PKCE for your application, but have not provided those parameters when attempting a login/registration. The links that we autogenerate in the app will not have a code_challenge by design, because those are dynamic for each request.
You can learn more about PKCE and turning it off on the applications core concepts page.