FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Categories
    3. Q&A
    Log in to post
    Load new posts
    • Recently Replied
    • Recently Created
    • Most Posts
    • Most Votes
    • Most Views
    • A

      How to use FusionAuth JWT token and claims with Hasura GraphQL to authenticate GraphQL requests

      • • atakan
      4
      2
      Votes
      4
      Posts
      19.9k
      Views

      A

      @dan you're welcome! 🙂

    • danD

      What open source and commercial packages are known to work with FusionAuth?

      commercial compatibility open source packages • • dan
      6
      0
      Votes
      6
      Posts
      18.3k
      Views

      robotdanR

      All of the new IdPs added in 1.28.0. Twitch, Steam, Xbox, Sony PSN, and Epic Games.

    • F

      Unsolved Duplicating an application held in 'Tenant1' to 'Tenant2' stays in 'Tenant1'

      • • francis.ducharme 0
      2
      0
      Votes
      2
      Posts
      22
      Views

      mark.robustelliM

      @francis-ducharme-0 It looks like you can do it through the AdminUI and generally if you can do it through the AdminUI, you can do it through the APIs. I should have some time later this week to test this out. If anyone else gets a chance to before then, please let us know.

    • L

      Unsolved Migration of Fusion Auth hosted (AWS) to GCP

      • • lambert.torres
      2
      0
      Votes
      2
      Posts
      7
      Views

      mark.robustelliM

      @lambert-torres You can get support for FusionAuth. Please see the pricing page if you are interested. I'm not sure if this is your exact situation, but you might want to look at this blog post as well.

    • W

      Unsolved Using server-side GTM with FusionAuth for Google Ads tracking

      • • witard91335
      2
      0
      Votes
      2
      Posts
      1
      Views

      mark.robustelliM

      @witard91335 Interesting, how do you see the flow working? What kind of tags are you trying to track though FusionAuth?

    • D

      Unsolved Force logout

      • • d.chinguun.0301
      3
      0
      Votes
      3
      Posts
      10
      Views

      D

      Hi @mark-robustelli, thanks for your reply. I need an API that logs out a user, but apparently that’s not possible. Is there any way or approach to log someone out.

    • danD

      Solved Want to run FusionAuth and the backend app in Docker

      docker dns • • dan
      2
      0
      Votes
      2
      Posts
      12
      Views

      danD

      You can create two values for the FusionAuth url:

      internalFusionAuthURL="http://fusionauth:9011" externalFusionAuthURL="http://localhost:9011"

      So basically whenever you are sending the redirect to the browser (pretty much just the authorize and logout URLs) you use externalFusionAuthURL which references localhost.

      When you are communicating with FusionAuth from the application backend (the express app) you use the internalFusionAuthURL which references the docker domain name.

      I tested that out and it seems to work fine.

      Give that a try.

    • J

      Unsolved Configure HTTPS with a custom certificate for our domain

      • • john 0
      6
      0
      Votes
      6
      Posts
      31
      Views

      mark.robustelliM

      @john-0 Glad you got it figured out. 👍

    • danD

      Changing the fusionauth logging format

      logging json logback • • dan
      3
      0
      Votes
      3
      Posts
      2.9k
      Views

      danD

      Worth re-emphasizing that this voids any warranty you might have from FusionAuth, per the license, exhibit A section 5.1.

      You can't get support from FusionAuth if you modify the software.

    • E

      Unsolved Unable to Obtain Tenant-Signed Access Token for Data-Plane Apps in a Multi-Client, Multi-Application FusionAuth Architecture

      • • ezequiel.rebasa
      6
      0
      Votes
      6
      Posts
      799
      Views

      mark.robustelliM

      @ezequiel-rebasa If you are just talking about testing, you could just add some data to the Lambda's to see if it works for your needs. This would allow you to test without having to spin up a second Docker instance. If it does work, then you may need to upgrade or figure out if you can use APIs to update the lambdas in the instances with the data you need.

    • N

      Unsolved Send email to set up password - This feature is currently not enabled, see the tenant email configuration

      • • nate
      2
      0
      Votes
      2
      Posts
      1.0k
      Views

      mark.robustelliM

      @nate Can you successfully Send test email from Tenants -> Select Edit from desired Tenant -> Email in the AdminUI? This will test if your SMTP settings are correct.

    • J

      Unsolved SAML CSRF token issue

      • • joseantonio
      5
      0
      Votes
      5
      Posts
      6.1k
      Views

      J

      @mark-robustelli
      Thanks I just did that.
      https://github.com/FusionAuth/fusionauth-issues/issues/3113

    • P

      Unsolved Email verification fails in new incognito mode

      • • pocfused
      4
      0
      Votes
      4
      Posts
      1.6k
      Views

      mark.robustelliM

      @pocfused said in Email verification fails in new incognito mode:

      https://fusionauth.io/community/forum/topic/1406/link-in-email-verification-not-working-first-time

      Glad you were able to solve your issue.

      As far as the automatically verify the email part. What settings do you have for Applications -> Your Application -> Registration -> Verification strategy? There is a setting Clickable link. Is that what you are after?

      Another thought would simply turning off Verify registrations in the Applications -> Your Application -> Registation tab work for you or do you still want the user to actually have to click on a link? (It would make sense to ensure the user owns the email address.)

      You could also do something like provide a custom template and direct them to your application and then automatically verify them using the APIs. Check out this blog post.

      Good luck.

    • danD

      Solved Can I offer "login with yahoo" using FusionAuth?

      yahoo login federation social logins • • dan
      2
      0
      Votes
      2
      Posts
      4.1k
      Views

      danD

      Yes. You can use FusionAuth's OpenID Connect Identity Provider.

      I did this a few weeks ago, so am writing these instructions from memory.

      Prerequisites:

      A yahoo account A running FusionAuth instance (localhost is fine)

      Steps:

      Go to the Yahoo! developer network and create an app. The redirect URI for Yahoo is https://<your instance>/oauth2/callback Save off the provided Client ID (Consumer Key) and Client Secret (Consumer Secret). Then go to FusionAuth and create an OpenID Connect Identity Provider: <your instance>/admin/identity-provider/add/OpenIDConnect Put the Client ID (Consumer Key) and Client Secret (Consumer Secret) into the Client Id and Client secret fields, respectively. Uncheck Discover Endpoints. Manually configure the endpoints: Set the Authorization Endpoint to https://api.login.yahoo.com/oauth2/request_auth Set the Token Endpoint to https://api.login.yahoo.com/oauth2/get_token Set the Userinfo Endpoint to https://api.login.yahoo.com/openid/v1/userinfo Set the Scope to openid email profile and any other scopes you might need. (I was unable to find an authoritative list, but here's info about the mail scopes.) Update the Button text and Button image as needed. Enable it for applications as needed. Save the Identity Provider.
    • J

      Unsolved Populate the First Name and Last Name when logging in with Google.

      • • jakub.hajto
      2
      0
      Votes
      2
      Posts
      1.6k
      Views

      mark.robustelliM

      @jakub-hajto , you may want to check out the Google Reconcile Lambda documentation. I also found this post that may be useful for you.

    • E

      Unsolved Logout with multiple subdomains

      logout domains • • ext_figuvini
      6
      0
      Votes
      6
      Posts
      2.2k
      Views

      B

      @mark-robustelli said in Logout with multiple subdomains:

      @ext_figuvini after reading your post again, I think I read it differently. The way the SSO logout works is that on logout, FusionAuth calls all the logout urls for each applications. It would seem that you are correct in that creating an application for each subdomain makes sense and would work. (You can create applications through the API so you should be able to automate this.) Can you try this for a few domains and confirm it works?

      Your point is correct. Creating a separate application for each subdomain is a reasonable and correct solution.
      When a user logs out of the SSO system, FusionAuth will call the logout URLs defined in each configured application in turn. This allows each application to clean up its own session. Pretty good solution

    • danD

      Solved Receiving 502 errors when using Cloudflare in front of FusionAuth

      502 proxy cloudflare error • • dan
      2
      0
      Votes
      2
      Posts
      180
      Views

      danD

      This is due to non-ASCII characters in headers causing an issue in the FusionAuth parsing code. Cloudflare sends headers with non-ASCII characters (such as cf-region: São Paulo) which triggers this issue.

      This is a java-http bug that was fixed in 2024, and released in FusionAuth version 1.51.2.

      So, two options:

      upgrade to a version of FusionAuth 1.51.2 or newer. This is the recommended approach, but may require some work. as an interim workaround, you can disable the "Add visitor location headers" option from your CloudFlare console. This should not have any negative impact, since we do not inspect those headers.
    • V

      Unsolved can't use fusion auth react sdk when fusion auth server runs locally on fusionauth.localhost:

      • • valerii15298
      3
      0
      Votes
      3
      Posts
      1.9k
      Views

      I

      @valerii15298 said in can't use fusion auth react sdk when fusion auth server runs locally on fusionauth.localhost::

      I followed react sdk example https://github.com/FusionAuth/fusionauth-quickstart-javascript-react-web/tree/main

      I changed in kickstart tenant issuer to

      "issuer": "http://fusionauth.localhost:9011"

      and variables to

      "allowedOrigin": "http://fusionauth.localhost:4000", "authorizedRedirectURL": "http://fusionauth.localhost:4000", "authorizedPostLogoutURL": "http://fusionauth.localhost:4000/logged-out", "authorizedOriginURL": "http://fusionauth.localhost:4000", "logoutURL": "http://fusionauth.localhost:4000",

      and started fusion auth in docker compose, also specified env var:

      FUSIONAUTH_APP_URL=http://fusionauth.localhost:9011

      For react sdk use this config:

      const config: FusionAuthProviderConfig = { clientId: "e9fdb985-9173-4e01-9d73-ac2d60d1dc8e", // even started my app under the same local domain redirectUri: "http://fusionauth.localhost:4000", postLogoutRedirectUri: "http://localhost:4000/logged-out", // serverUrl: "http://localhost:9011", // this one works serverUrl: "http://fusionauth.localhost:9011", shouldAutoFetchUserInfo: true, shouldAutoRefresh: true, onRedirect: (state?: string) => { console.log(`Redirect happened with state value: ${state}`); }, scope: "openid email profile offline_access", };

      And when I log in and am redirected back to my app, fusion auth hook does not show me that I am logged in(it does not even send any requests I checked network). But when I strip everywhere fusionauth. prefix then everything works fine. Why does not fusion auth work locally with custom domains?

      Cookies on my local app fusionauth.localhost:4000 are also saved after I logged in: https://freeimage.host/i/3FVbSJsWacky Flip

      And when I click login button again (or invoke startLogin function from useFusionAuth hook) I am redirected right away to the app since I am logged in. But isLoggedIn is false and useFusionAuth hook does not recognize that user is logged in.

      (I have mapped fusionauth.localhost to localhost in my hosts file locally)

      #docker #react-sdk

      Set SameSite=None; Secure explicitly on the FusionAuth Cookie: this tells the browser to send the cookie with all requests, even cross-site requests. SameSite=None requires the Secure attribute, meaning the cookie will only be sent over HTTPS. Since you are using http://, this won't work directly without HTTPS set up locally.

    • E

      Unsolved Adding supplementary user data

      user data userinfo self hosted • • evanm
      6
      0
      Votes
      6
      Posts
      8.0k
      Views

      S

      @Alex-Patterson tunnel rush said in Adding supplementary user data:

      @evanm Yes you can use the sub inside of the JWT when making any API call to your backend. In your database this will be a unique Id for the user. You can even get more details about the user from FusionAuth by calling the User endpoints.

      https://fusionauth.io/docs/apis/users#response-1

      Thanks for sharing!!

    • L

      Unsolved nextAuth SignOut and revoking app sessions

      • • laurahernandez
      5
      0
      Votes
      5
      Posts
      5.5k
      Views

      L

      @mark-robustelli Yes, it's all working. After the logout flow executes, the sessions that were being left behind on FusionAuth are now being revoked properly. Thanks.