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

    Custom parameters in callback method

    Scheduled Pinned Locked Moved Unsolved
    Q&A
    2
    2
    751
    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
      francis.ducharme
      last edited by francis.ducharme

      Hi there!

      Is there any way in the login process to have custom parameters received in the defined callback method ?

      04c4b0d7-94a6-4890-90cb-1841ad74224c-image.png

      As you can see, I am redirecting the user's browser to a static URL, but I'd like this URL to be dynamic, depending on custom parameters received when Google (the identity provider in this case) calls my Callback method

      Is this possible ?

      joshuaJ 1 Reply Last reply Reply Quote 0
      • joshuaJ
        joshua @francis.ducharme
        last edited by

        @francis-ducharme

        To confirm, you are:

        1. Sending the user to a page such as:
        https://local.fusionauth.io/oauth2/authorize?client_id=85a03867-dccf-4882-adde-1a79aeec50df&response_type=code&redirect_uri=https%3A%2F%2Fthird.com
        
        1. The user will click login with Google or be redirected automatically to Google (if using an idp_hint, for instance)

        In this case, FusionAuth will redirect to https://third.com (example only) but could just as easily redirect to https://fourth.com depending on step one. In either case, all possible redirect URLs for your application need to be previously defined on the OAuth configuration for that application.

        Also, we do have a few github issues allowing a wildcard to be defined for a redirect URL.

        • https://github.com/FusionAuth/fusionauth-issues/issues/437

        With more context, I might be able to provide additional feedback. Depending on context, deeplinking might also be something worth exploring

        • https://www.youtube.com/watch?v=-vx5rdy-mvY

        Thanks,
        Josh

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