FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login

    Can I link to the self registration URL from my app?

    Scheduled Pinned Locked Moved Solved
    Q&A
    3
    3
    18.8k
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      Luis B
      last edited by Luis B

      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

      joshuaJ 1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua @Luis B
        last edited by

        @luis-b

        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.

        8e476aee-b163-4d77-b4d0-805249f9aa6a-image.png

        Thanks,
        Josh

        danD 1 Reply Last reply Reply Quote 0
        • L Luis B has marked this topic as solved on
        • danD
          dan @joshua
          last edited by

          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.

          --
          FusionAuth - Auth for devs, built by devs.
          https://fusionauth.io

          1 Reply Last reply Reply Quote 0
          • First post
            Last post