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

    Login with Magic Link?

    Scheduled Pinned Locked Moved General Discussion
    29 Posts 2 Posters 180.3k Views
    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.
    • R
      richb201
      last edited by

      I am not using any login pages. Where would I set that up? The plan is to eventually send a passwordless email to a user, have them click the link which brings them to a form on my host. But for now I am trying to get it to work with just the FusionAuth control panel.

      1 Reply Last reply
      Reply Quote 0
      • danD
        dan
        last edited by

        Hi @richb201 ,

        The hosted pages are set up by default for you.

        So if I understand you correctly, are you saying that you have enabled passwordless for a given application but don't see the 'magic link' button on the login form?

        What is the "OAuth IdP login URL" value that you are trying to login with? (If you go to Applications and then click the green magnifying glass next to the application you are trying to set up, you can see this value.)

        Also, what is the value for "Passwordless login" from that same screen?

        --
        FusionAuth - Identity Without Constraints
        https://fusionauth.io

        1 Reply Last reply
        Reply Quote 0
        • R
          richb201
          last edited by richb201

          The oauth idp is : http://localhost:9011/oauth2/authorize?client_id=32688330-1630-4e0d-a4de-8ae45c3ca527&response_type=code&redirect_uri={your redirect URI here}

          Notice that there is no redirect.! I am not able to fill in that field on Home/ Applications/Edit because it is greyed out.

          1 Reply Last reply
          Reply Quote 0
          • danD
            dan
            last edited by

            You need to add a redirect ("Applications" -> your application -> "OAuth" and then add a URL which can receive an authorization code and then retrieve an access token).

            --
            FusionAuth - Identity Without Constraints
            https://fusionauth.io

            1 Reply Last reply
            Reply Quote 0
            • danD
              dan
              last edited by

              Sorry, I was moving quick last night and misunderstood your comment. What do you mean you can't edit the redirect? Can you share a screenshot, please?

              --
              FusionAuth - Identity Without Constraints
              https://fusionauth.io

              1 Reply Last reply
              Reply Quote 0
              • R
                richb201
                last edited by

                Screenshot from 2020-10-02 13-45-28.png

                see the very bottom? Authorized redirect URLs? I can't seem to change that since it is greyed out.

                1 Reply Last reply
                Reply Quote 0
                • danD
                  dan
                  last edited by

                  Ah, that's a ux quirk. It isn't actually disabled, you should be able to add one or more urls to it.

                  You can see how I add a redirect url here: https://youtu.be/trzY5otEgKM?t=254

                  Hope that helps.

                  --
                  FusionAuth - Identity Without Constraints
                  https://fusionauth.io

                  1 Reply Last reply
                  Reply Quote 0
                  • R
                    richb201
                    last edited by richb201

                    Thanks Dan. I watched the video. No, it will not take my redirect URL. Now, I don't have https on my laptop. Is that the issue? I am developing in a docker container on the laptop.

                    1 Reply Last reply
                    Reply Quote 0
                    • danD
                      dan
                      last edited by

                      You can't paste text into that input box, you have to type it. Are you trying to paste it in, perhaps?

                      If not, then there's something I don't understand going on.

                      Developing in docker shouldn't affect this.

                      Are you logged in as the admin user?

                      --
                      FusionAuth - Identity Without Constraints
                      https://fusionauth.io

                      danD 1 Reply Last reply
                      Reply Quote 0
                      • R
                        richb201
                        last edited by richb201

                        I am logged in as me and looking at the Users (attached) I am NOT an admin. Must I change that and how? BTW, my shirt came today. TY. Screenshot from 2020-10-03 18-54-05.png

                        BTW, what does cat /etc/password mean?

                        1 Reply Last reply
                        Reply Quote 0
                        • danD
                          dan
                          last edited by

                          Hiya,

                          You are an admin (you have the admin role in the FusionAuth app) so you should be able to add a redirect URI.

                          Any chance you can record and upload a video of you trying to add the redirect URI? Everything looks solid from what I can see, so I'm a bit confused about what is happening.

                          Glad you got the shirt! cat /etc/passwd is unix-speak for "show my all your passwords" 🙂

                          --
                          FusionAuth - Identity Without Constraints
                          https://fusionauth.io

                          R 1 Reply Last reply
                          Reply Quote 0
                          • danD
                            dan @dan
                            last edited by

                            @dan said in Login with Magic Link?:

                            You can't paste text into that input box, you have to type it. Are you trying to paste it in, perhaps?

                            I was wrong, you can paste it in. You just can't paste in two or more urls.

                            --
                            FusionAuth - Identity Without Constraints
                            https://fusionauth.io

                            1 Reply Last reply
                            Reply Quote 0
                            • R
                              richb201 @dan
                              last edited by

                              @dan said in Login with Magic Link?:

                              You are an admin (you have the admin role in the FusionAuth app) so you should be able to add a redirect URI.

                              But I am trying to use the Research Credit Toolkit application. I haven't tried it with the FusionAuth application yet. Anyway I am going to try to record a screen video. I use Screenshot which doesn't have that ability. Can you recommend an app to do the recording with?

                              1 Reply Last reply
                              Reply Quote 0
                              • R
                                richb201
                                last edited by

                                Notice that when I first login to the control panel (see attached), the Smart Link is not there. Screenshot from 2020-10-06 12-37-07.png

                                1 Reply Last reply
                                Reply Quote 0
                                • R
                                  richb201
                                  last edited by

                                  Well I almost got it. Here is the screenshot. Notice the invalid URL? I do not have a an SSL Certificate for this laptop. Could this be the issue? Screenshot from 2020-10-06 20-02-22.png

                                  1 Reply Last reply
                                  Reply Quote 0
                                  • danD
                                    dan
                                    last edited by

                                    Glad to see you're figuring things out.

                                    https/http shouldn't be a problem. Is there a space at the beginning or end of your url?

                                    --
                                    FusionAuth - Identity Without Constraints
                                    https://fusionauth.io

                                    1 Reply Last reply
                                    Reply Quote 0
                                    • R
                                      richb201
                                      last edited by

                                      This post is deleted!
                                      1 Reply Last reply
                                      Reply Quote 0
                                      • R
                                        richb201
                                        last edited by

                                        OK. Got it in there.
                                        Screenshot from 2020-10-07 13-03-04.png

                                        Now, how should I test that this is working OK? My initial plan was to a) add users via the API b) send login message via email c) have users complete login via link in email d) have user hot the Send button to submit the form.

                                        But now I think i should test step by step. What is next?

                                        1 Reply Last reply
                                        Reply Quote 0
                                        • danD
                                          dan
                                          last edited by

                                          Heya,

                                          Are you asking for some free consulting 🙂 ?

                                          I think testing/writing each of these steps separately is a good idea. Step a should be pretty straightforward, step b doesn't involve fusionauth (I don't think, we do have a welcome email, but that happens when you add the user without any action). step c is your code + a fusionauth API call and step d is your code too.

                                          --
                                          FusionAuth - Identity Without Constraints
                                          https://fusionauth.io

                                          1 Reply Last reply
                                          Reply Quote 0
                                          • R
                                            richb201
                                            last edited by richb201

                                            Are you asking for some free consulting 🙂 ?

                                            No, I can play this "trial and error" game for months :). Seriously though, I am a little concerned that I couldn't enter the URL for quite a few days and then it started working. I just want to be sure that the authorized request origin URL is actually being used. Is there some easy way to test that without using the API?
                                            Did I mention that I appreciate your help and the T-shirt too?

                                            1 Reply Last reply
                                            Reply Quote 1

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • First post
                                              Last post