Return URL with oidc-client.js
-
hello, is it possible to add some specific 'extraQueryParams' in oidc-client.js to have FusionAuth add a return URL to the login-callback redirect?
-
hiya, have you tried
redirect_uri
? That should work, but it will require you to configure the allowedredirect_uri
s in your FusionAuth application's OAuth config (on the OAuth tab in the admin ui). wildcards aren't recommended for theredirect_uri
due to security concerns (see https://tools.ietf.org/id/draft-ietf-oauth-security-topics-05.html#rec_redirect ).The other alternative is to pass a state parameter, which should be returned unchanged to you by FusionAuth. You could then have your code look at that parameter and redirect as needed.
You could also look at caching the value in
localStorage
and retrieving it after login has occurred.