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

    Malformed request when using idp_hint

    Scheduled Pinned Locked Moved
    Q&A
    2
    7
    7.3k
    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.
    • F
      fusionauth_user
      last edited by fusionauth_user

      so im trying to use the idp hint but i get the malformed request error.

      what am i doing wrong with my url?
      ..../oauth2/authorize?client_id={clientid}&redirect_uri={redirect uirl}&response_type=code&tenantId={tennantID}&idp_hint={idp_id}

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

        Just to confirm, you are using FusionAuth v1.19.0 or later, correct? What version are you on?

        That looks ok.

        A few things to look at:

        • The idp_hint value should be a valid UUID for an IDP configured in "Settings -> Identity Providers".
        • The provider should be enabled for the application you are trying to log in to.
        • You should be able to log in using that provider without the idp_hint (by clicking the 'login with Facebook' button, for example).

        Can you confirm the above?

        Thanks!

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

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

          Hmmm. I'm still not able to use the idp_hint with Google even though I've verified a plain login works. I'll file a bug.

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

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

            https://github.com/FusionAuth/fusionauth-issues/issues/909

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

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

              @fusionauth_user

              Also, which idp were you trying to hint?

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

              F 1 Reply Last reply Reply Quote 0
              • F
                fusionauth_user @dan
                last edited by fusionauth_user

                @dan said in Malformed request when using idp_hint:

                @fusionauth_user

                Also, which idp were you trying to hint?

                As it happens, with google

                And yes to all the questions you asked above

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

                  Great. I've updated the documentation to reflect that google and facebook aren't supported; that'll be published next week. Sorry about that.

                  More details on the bug I filed above (and the doc change linked in the bug). If you try this with SAML/OIDC and it fails, please let me know.

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

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