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

Registering a user to other applications during registration

Scheduled Pinned Locked Moved
Q&A
3
11
7.0k
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.
  • A
    ashok
    last edited by 20 Jul 2020, 16:25

    Is there an "automatic" way to register a user to a different application, say, a mobile app, when they register for, say, a web app? Or do we have to do that at the application level using an API?

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 20 Jul 2020, 17:43

      Hiya,

      There's no built in way to register someone with two applications. You could, as you mention, use the API. If I were going to do this, I'd listen for a webhook signaling completion of the web app registration (the user.registration.create event) and then add the mobile app registration using the registration API.

      Links which may be helpful:

      • https://fusionauth.io/docs/v1/tech/apis/registrations#create-a-user-registration-for-an-existing-user
      • https://fusionauth.io/docs/v1/tech/events-webhooks/

      An alternative would be to not use the FusionAuth OAuth themed pages at all, and drive everything via API, including the initial registration.

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

      1 Reply Last reply Reply Quote 1
      • A
        ashok
        last edited by 20 Jul 2020, 20:58

        That makes sense. Thanks @dan!

        1 Reply Last reply Reply Quote 1
        • A
          ashutosh
          last edited by ashutosh 17 Sept 2020, 06:38

          Hi Den,
          we have 3 diffrent domains and trying to impliment fusionauth, but we are not understanding how registrations will work?
          and everywhere i am trying to find out with SSO, it talks about process after userlogin , but nowhere i could see anything about registrations?
          Can you throw some light on this ? where will my users register for all 3 applications sitting on 3 different domains and how does fusionauth authenticate if it will not register?
          I thought fusionauth will handle both processes, from same page.

          Regards,
          Ashutosh

          1 Reply Last reply Reply Quote 0
          • D
            dan
            last edited by dan 17 Sept 2020, 13:34

            It sounds like you have this situation:

            • appA.com has FusionAuth application A
            • appB.com has FusionAuth application B
            • appC.com has FusionAuth application C

            And you want someone to be able to register at appA.com and be able to log into appB.com and appC.com as well. Is that correct?

            Are you using the FusionAuth self registration (either basic or advanced registration forms)? Or are you building your own registration from and calling the registration API?

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

            A 1 Reply Last reply 18 Sept 2020, 05:44 Reply Quote 0
            • A
              ashutosh @dan
              last edited by 18 Sept 2020, 05:44

              @dan said in Registering a user to other applications during registration:

              You are right, yes I want if a person register at any of appA.com appB.com or appC.com they should be able to login.

              Nothing has been implemented yet. Currently all three applications have their own sign-in/Reg flow where we save each user to respective app db. with SSO wish to give cross application access depending on type of user.

              We wish to use own registration form.

              1 Reply Last reply Reply Quote 0
              • D
                dan
                last edited by 18 Sept 2020, 23:07

                Since you are building your own registration form, can you just call the register API three times, once for each application?

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

                1 Reply Last reply Reply Quote 0
                • A
                  ashutosh
                  last edited by 19 Sept 2020, 06:32

                  yes we can , hit API 3 times

                  1 Reply Last reply Reply Quote 1
                  • D
                    dan
                    last edited by 19 Sept 2020, 15:05

                    Ah, great, that's the way I'd do it, then. Unless I missing something that would cause that to be a non-optimal solution.

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

                    1 Reply Last reply Reply Quote 0
                    • A
                      ashutosh
                      last edited by 21 Sept 2020, 05:49

                      so you mean , every time on registration form info would go to 3 applications and also to Fusionauth?

                      1 Reply Last reply Reply Quote 0
                      • D
                        dan
                        last edited by 21 Sept 2020, 23:19

                        Well, I'd just call the 'create registration' API from the server three times after a user had successfully registered on your custom page: https://fusionauth.io/docs/v1/tech/apis/registrations#create-a-user-registration-for-an-existing-user

                        Does that make sense, or do I misunderstand your question?

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

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