FusionAuth
    • Home
    • Categories
    • Recent
    • Popular
    • Pricing
    • Contact us
    • Docs
    • Login
    1. Home
    2. Popular
    Log in to post
    • All Time
    • Day
    • Week
    • Month
    • All Topics
    • New Topics
    • Watched Topics
    • Unreplied Topics
    • All categories
    • E

      The twoFactorLogin method for the typescript client doesn't return the refreshToken

      General Discussion
      • • • eakpan
      9
      0
      Votes
      9
      Posts
      7.0k
      Views

      mark.robustelliM

      @eakpan Awesome, thanks for posting. This may end up helping others. Glad you are able to configure FusionAuth to work for you.

    • L

      Customize the login screen

      General Discussion
      • • • laurahernandez
      6
      0
      Votes
      6
      Posts
      598
      Views

      mark.robustelliM

      @laurahernandez I hope you are able to achieve the look and feel you are going for. I understand you would like to be able to show and hide the password dialog in simple themes and you are not the only one. Please be sure to upvote the issue here.

      I understand using advanced themes may require more work, but ultimately it is more flexible that simple themes. Good Luck.

    • L

      Unsolved nextAuth SignOut and revoking app sessions

      Q&A
      • • • laurahernandez
      5
      0
      Votes
      5
      Posts
      694
      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.

    • E

      Unsolved Logout with multiple subdomains

      Q&A
      • logout domains • • ext_figuvini
      4
      0
      Votes
      4
      Posts
      244
      Views

      E

      @mark-robustelli Hey, Mark! Thank you so much for taking your time to answer me.

      So, I was going to try to create new application, but talking to the other devs I have on this project, we figured out we currently have about 700 different domains (each client gets a domain for his access), and this is on a legacy PHP/Zend application, so you can imagine how painful it is to change all the implementations.

      Currently, I think it'd be unviable to create one application for each different domain, because it'd be a nightmare to manage 700 different applications in the dashboard, so I'd be happier with being able to sync logouts in a single application. I've considering doing some manual hacking (like creating a global cookie that gets info from each domain cookie and then killing all of them), but I'd like to know if anyone else here had success with this kind of scenario without having to pull out the hacky stuff.

      Thanks again!

    • J

      Unsolved Enquiry Regarding FusionAuth Evaluation and Access Management Capabilities

      Q&A
      • • • jay.saxophone383
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      mark.robustelliM

      @jay-saxophone383 I do believe you can get FusionAuth to work as you described here. Here are some links that may give you a little more detail.

      SAML v2 with ADFS

      OpenID Connect with Azure AD

      Enabling Single Sign-On in an Organization

      Product Update

      As mentioned above, some of the features described are only available with paid planes and if you need to test them out, you will want to contact FusionAuth and see what can be worked out.

    • A

      Startup fails after Postgresql db upgrade

      General Discussion
      • • • atakan
      3
      0
      Votes
      3
      Posts
      339
      Views

      mark.robustelliM

      @atakan thanks for sharing the information.

    • S

      Doubling of login records

      General Discussion
      • • • sergey_smirnov
      2
      0
      Votes
      2
      Posts
      3
      Views

      mark.robustelliM

      @sergey_smirnov can you tell us a little about how you have FusionAuth set up? Can you look at your server logs and make sure the page is not being called multiple times? Also, can you share the details of the log entries (be sure to redact private information)?

    • J

      Templates Broken in VS2019 v16.9.3 – Anyone Else?

      General Discussion
      • vs2019 error • • jobclone20
      3
      0
      Votes
      3
      Posts
      272
      Views

      mark.robustelliM

      @jobclone20 I just took a look at the page for the FusionAuth Visual Studio Templates. It appears they are only for Visual Studio 2022.

    • H

      Unsolved Proxy IP Issue

      Q&A
      • • • haziqt
      2
      0
      Votes
      2
      Posts
      446
      Views

      mark.robustelliM

      @haziqt have you taken a look at the documentation on How To Us a Proxy? There are a few headers you will need to add.

    • R

      Unsolved Cookie for multiple environments on the same root domain

      Q&A
      • • • robert.regnier
      2
      0
      Votes
      2
      Posts
      448
      Views

      mark.robustelliM

      @robert-regnier Unfortunately, it looks FusionAuth does not support this. I did find an
      open issue that you may want to upvote if it is in fact the same issue you are experiencing.

      You may also want to check out this blog. It talks about a custom domain using one of FusionAuth's hosting packages, but think it should work in your case as well.

      Does anyone else have a similar setup? How did you implement it?

    • J

      Is it safe to build my own authentication system for production?

      General Discussion
      • • • jobcuatoi14
      4
      0
      Votes
      4
      Posts
      661
      Views

      mark.robustelliM

      @jobcuatoi14, Since I work for FusionAuth, I obviously have a pretty strong opinion on this one. Beyond that, I still have a strong opinion as a developer in general. I will share with you my thoughts so you can take them under consideration.

      I'm not going to tell you what you should and shouldn't do. Everyone's authentication strategy is their own decision. Personally, in general, I would recommend against building your own. Instead of listing reasons, I will pose questions for you to consider so you can come to your own conclusion.

      Are you a security expert? If not, you will need to implement all the standards. Yes, you can use common libraries, but you will have to always stay up on the latest and greatest. Everyday you will need to check for vulnerabilities in every library you use. If something breaks, you will have to stop what you are doing on your core product and fix it. You also mentioned JWTs and there are many other well known standards out there such as OAuth. Knowing the recipe and executing it are two different things. You may read how to prepare Fugu, but do you really want to do that yourself or leave it to an expert?

      Is authentication your product? If not, you will have to consider all the time you will be dedicating to authentication as a developer. How much better would your core product be if you spent that time focusing on it?

      How much time do you have to dedicate to building your own auth? Even with standard libraries, you will have to build a lot. Probably more than you initially thought. I know you talked about using bcrypt for hashing, but are you aware of the concept of using salt with the passwords? If not, I would really recommend not doing it. If you are, that is just one more thing you will have to deal with. You mentioned the forgot password flow, but you will likely need other things like initial registration flow. What about updating user data in general?

      What features do you need? Of course that comes down to what you are trying to protect. If you are just maintaining your small blog subscription, username and password may work. If it is more sensitive, you may need things like MFA. Will you need to allow social logins? Will you need to enforce password policies? Will you need to support passwordless login? Role Based Authentication?

      Do you have time to maintain what you build on top of your core product? Once you have it built does not mean you can forget about it. Security is an evergreen process. The consequences of a lapse and impact on your product/company can only be measured by you.

      I could go on and on, but I think for a forum post this gives a pretty good support of my recommendation.

      Whatever issue you have with the other tools you mentioned or even FusionAuth itself, I would challenge you strongly to consider if the issue is easier to deal with than creating the whole system yourself. In my experience, it is usually easier to work around the issue than build your own.

      I can't necessarily speak for the other products you have listed, but if you list some of your concerns with FusionAuth, I may be of some assistance.

      Are you aware FusionAuth has a free Community Edition?

      Also, I would recommend going through a FusionAuth Quickstart in the programming language of your choice to see how easy it is to get started.

      Deciding which authentication to use is not a simple choice, I hoped this helped and didn't sound too "salesy".

      I'd love to hear other's thoughts on this as well.

    • W

      Solved Can You Create Read-Only Roles in FusionAuth?

      Q&A
      • login logins • • wesley
      2
      0
      Votes
      2
      Posts
      7.9k
      Views

      W

      Existing Role Limitations in FusionAuth FusionAuth provides predefined Admin UI roles, which are not modifiable. You can review the available roles here:
      FusionAuth Admin UI Roles The default FusionAuth application roles cannot be changed, which means read-only roles are not currently available. Requesting Read-Only Roles as a Feature FusionAuth does not currently support read-only access roles for applications or tenants. The likely reason for this is that users who need to view application/tenant properties often also need to update them. However, you can submit a feature request to suggest adding read-only roles:
      Submit a Feature Request Workaround: Implement a Custom Read-Only View

      If immediate read-only access is required, consider:

      Using the FusionAuth APIs to create a custom dashboard where users can view but not edit data. Relevant APIs for this purpose: Application API Tenant API

      Summary

      No built-in read-only roles exist for applications or tenants. FusionAuth Admin UI roles are not modifiable. You can request read-only roles as a feature via GitHub. A workaround is to build a custom, API-based read-only view.
    • R

      Unsolved Getting 403 : disallowed_useragent with Google Auth

      Q&A
      • • • robin.singh
      2
      0
      Votes
      2
      Posts
      5.7k
      Views

      mark.robustelliM

      @robin-singh said in Getting 403 : disallowed_useragent with Google Auth:

      We have android/iOS app where authentication redirects to fusionauth login page.
      And here we have Facebook/Google login setup.
      Facebook and native login is working fine but with Google login getting Error 403: disallowed_useragent.

      Is there any way to directly open sign in for google which will send data to fusion auth only.

      Are you trying to open the login in your application? Maybe try to use the system browser to up the Google login and see if that works. Google disallows OAuth login flows inside embedded web views (like those used in many mobile apps).

    • V

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

      Q&A
      • • • valerii15298
      3
      0
      Votes
      3
      Posts
      1.6k
      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

      Q&A
      • user data userinfo self hosted • • evanm
      6
      0
      Votes
      6
      Posts
      7.6k
      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!!

    • D

      LDAP

      General Discussion
      • • • david.billings
      3
      0
      Votes
      3
      Posts
      2.7k
      Views

      M

      @dan geometry dash lite said in LDAP:

      @david-billings

      Does FA remove users once they've been removed from LDAP?

      If you use the LDAP as the source of truth, the users won't be able to login, but they won't be removed.

      So, consider this scenario (no migration, just always going back to LDAP):

      User A logs in successfully through a tenant configured with an LDAP Connector. User A has an account in the LDAP server. FusionAuth checks with the LDAP connector, passing the credentials. The LDAP server says "yup, User A is okay." FusionAuth creates a user. Time passes. User A is removed from the LDAP server. User A tries to login. FusionAuth checks with the LDAP connector, passing the credentials. The LDAP server says "User A is not found" FusionAuth denies the login.

      But the user still exists.

      Is there anyway to sync this and sync the users without each user having to login?

      You want to sync the users between LDAP and FusionAuth without the user having to login? Is this a one way sync?

      You could do a bulk migration using the Import User API if you have access to the LDAP database and can provide the password hashes.

      That is the only option that comes to mind.

      Thanks for your help, it was very helpful.

    • A

      Solved How to distinguish between Google Logins and traditional email+pwd logins?

      Q&A
      • • • admin 8
      12
      0
      Votes
      12
      Posts
      11.0k
      Views

      A

      @owork138 Thank you so much for the detailed and thoughtful explanation. Your insights have helped clarify the likely cause of the confusion with the authentication setup in our FusionAuth application. Understanding that the lack of distinction in the session data may stem from FusionAuth’s default handling—and that customization in our Express.js logic might be required—gives us a clear direction to move forward.

      We truly appreciate the time and effort you put into outlining potential solutions. We'll be reviewing our current middleware and exploring the recommended approach to better capture identity provider information during authentication.

      Thanks again for your support!

    • K

      NetworkError when attempting to fetch resource

      General Discussion
      • • • kiouplidis
      3
      0
      Votes
      3
      Posts
      10.7k
      Views

      I

      @mark-robustelli said in NetworkError when attempting to fetch resource:

      @Survival Race, can you please give us a little more detail on how you are set up and exactly what you are trying to do. I see you are getting a NetworkError when trying to reach (auth.*.com). Is that an instance of FusionAuth hosted by FusionAuth or is that an instance of FusionAuth that you have deployed? How are you trying to access the resource ? Through a web browser or are you trying to execute an API call? The more information you can provide, the easier it will be to help.

      If you have a paid plan which includes technical support, please open a ticket via your account portal.

      Have any recent changes been made to the CORS configuration or FusionAuth app settings?