Custom parameters in callback method
-
Hi there!
Is there any way in the login process to have custom parameters received in the defined callback method ?
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
methodIs this possible ?
-
To confirm, you are:
- 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
- The user will click
login with Google
or be redirected automatically to Google (if using anidp_hint
, for instance)
In this case, FusionAuth will redirect to
https://third.com
(example only) but could just as easily redirect tohttps://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.
With more context, I might be able to provide additional feedback. Depending on context, deeplinking might also be something worth exploring
Thanks,
Josh