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

Return URL with oidc-client.js

Scheduled Pinned Locked Moved
Q&A
client-library return url
1
2
1.7k
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.
  • D
    dan
    last edited by 9 Sept 2020, 15:28

    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?

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

    1 Reply Last reply Reply Quote 0
    • D
      dan
      last edited by 9 Sept 2020, 15:29

      hiya, have you tried redirect_uri? That should work, but it will require you to configure the allowed redirect_uris in your FusionAuth application's OAuth config (on the OAuth tab in the admin ui). wildcards aren't recommended for the redirect_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.

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

      1 Reply Last reply Reply Quote 0
      1 out of 2
      • First post
        1/2
        Last post