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
    • F

      Solved How to bulk import users with no password hash?

      frontegg ritza import migration • • fusionauth.qhj5e
      3
      0
      Votes
      3
      Posts
      1.9k
      Views

      F

      @mark-robustelli Oh ok, I'll set the password to a UUID then and set the user to change password on login. I'll try on Monday. Thanks for the forum link.

    • C

      Unsolved Propagate rememberDevice property from Login page back to redirect or similar

      login theme propagate rememberme • • carvalhom
      3
      1
      Votes
      3
      Posts
      2.2k
      Views

      C

      @dan Thank you for the prompt response I will give this a try soon.

    • danD

      Solved Assign a user role when a user logs in using Google

      • • dan
      2
      0
      Votes
      2
      Posts
      1.3k
      Views

      danD

      This is possible today using a Google Reconcile Lambda. Our Lambdas allow arbitrary JavaScript to be executed during a login event. You can write logic to check the user's domain and assign them the appropriate role associated with the FusionAuth Application they're authenticating through.

      Below is a code example demonstrating how you could implement such logic:

      function reconcile(user, registration, idToken) { function extractDomain(email) { // Split the email address by '@' symbol var parts = email.split('@'); // Return the second part which represents the domain name return parts[1]; } // function to extract the email domain from the user object and stores in domain variable var domain = extractDomain(user.email); // Conditional statement checks domain for fusionauth.io and adds 'counsellor' role, if any other domain exist adds 'user' role if (domain === 'example.com') { registration.roles.push('teacher'); } else { registration.roles.push('user'); } //This is optional, but is good to have for debugging purposes. The results will be returned in the event logs. console.info(registration.roles); }
    • danD

      Solved Simple session management service

      • • dan
      2
      0
      Votes
      2
      Posts
      773
      Views

      danD

      The best solution here would be to use entity management.

      You can create an entity type of Session or similar.

      Each time you have a user log in, you can create a Session and set the .data.session_identifier field to the value of the device fingerprint + business specific indicator, and store the access token as the value.

      When you are trying to find whether a user has a valid session, you can use the Entity search APIs to find that key and get back the value. Or, if the value doesn't exist, the user has no valid session.

      For expiration, you can use the access tokens exp claim (which means anything consuming it will have to check that, which it should anyway). You could also manage additional expiration metadata in the .data field if you needed different logic (you have 5 hour access on weekdays, 10 hours of access on weekends or something similar).

      Note that you should be vary aware of the security implications of this scheme (for example, that the device fingerprinting is unique and that the access token is narrowly scoped enough that if it is somehow obtained by an attacker it can't be used to damage the system)

    • danD

      logout questions

      logout • • dan
      6
      0
      Votes
      6
      Posts
      6.9k
      Views

      B

      @dan said in logout questions:

      've got a question about logout.
      When logging in using the /oauth2/token route with the auth wordle code grant, it seems the /api/logout route does not revoke the refresh token.
      Is intended? Is the best way to log out in this case is with the /ouath2/logout route? How does that know which user to log out? there's no user id or refresh token property in the body.

      Regarding user identification during logout, the OAuth 2.0 specification doesn't define a standard logout endpoint. Logout processes are often application-specific, and the mechanism to identify the user being logged out might depend on the authentication framework or technology being used.

    • J

      Unsolved IIS Reverse Proxy not showing FusionAuth Page correctly

      • • jawaid.karim
      4
      0
      Votes
      4
      Posts
      2.0k
      Views

      danD

      @jawaid-karim Are you setting all the headers mentioned here? https://fusionauth.io/docs/operate/deploy/proxy-setup

    • danD

      Password that never expires?

      passwords expiration • • dan
      5
      0
      Votes
      5
      Posts
      1.9k
      Views

      danD

      If you needed to, you could always build an API integration (the User Update API lets you reset passwords, or you could initiate a Change Password Request) into your application for a specific user.

    • T

      Unsolved User Account Not Linked to IDP

      • • thomas.wojeck
      4
      1
      Votes
      4
      Posts
      558
      Views

      danD

      @thomas-wojeck

      Have you turned on the debug logs and looked in the event log? That's what I'd start doing to troubleshoot.

      More here: https://fusionauth.io/docs/operate/troubleshooting/troubleshooting#enabling-debugging

    • I

      Unsolved Howto setup a local FusionAuth evaluation server with a self-signed certificate

      • • info 0
      2
      0
      Votes
      2
      Posts
      408
      Views

      A

      @info-0 are you able to use our global one?

      https://local.fusionauth.io/ will redirect to http://localhost:9011

      If not a great option is to setup ngrok
      https://fusionauth.io/docs/get-started/download-and-install/development/exposing-instance

      ngrok http --request-header-add 'X-Forwarded-Port:443' 9011

    • F

      Solved Why does import user with Registration fail?

      import wordpress type ritza registration • • fusionauth.qhj5e
      4
      0
      Votes
      4
      Posts
      2.5k
      Views

      A

      @fusionauth-qhj5e I have brought this up internally, for now we are considering adding a PR to make it more clear for users.

      https://github.com/FusionAuth/fusionauth-site/pull/2918

    • danD

      Unsolved docker compose issue

      • • dan
      4
      0
      Votes
      4
      Posts
      2.8k
      Views

      danD

      @ryan-hopper Thanks for sharing that info. Appreciate it!

    • danD

      Is it possible to set up SSL for fusionauth directly?

      ssl • • dan
      9
      0
      Votes
      9
      Posts
      6.3k
      Views

      danD

      @pradhanv88 it is documented here: https://fusionauth.io/docs/reference/configuration

      But there is a bug with TLS in recent versions of FusionAuth: https://github.com/FusionAuth/fusionauth-issues/issues/2498

      This is scheduled not for this release, but for the next one.

    • C

      Using a non-default schema on a custom postgres DB

      • • cyrill.lippuner
      5
      0
      Votes
      5
      Posts
      1.2k
      Views

      J

      I was able to get this working with:

      jdbc:postgresql://db:5432/mydb?currentSchema=auth
    • R

      Unsolved Login issue to hosted frontend developed using fusionauth react sdk

      • • renukamirihana
      2
      0
      Votes
      2
      Posts
      443
      Views

      mark.robustelliM

      @renukamirihana Have you been through this page? https://fusionauth.io/docs/operate/deploy/proxy-setup

      What message to you receive when the application goes to the unauthenticated path?

    • P

      Unsolved Getting error in Google Oauth integration

      • • prince.b
      5
      0
      Votes
      5
      Posts
      2.0k
      Views

      S

      Are you attempting to enable users to log into your application using Google? Click Here for further details

    • A

      Unsolved Gateway with OAuth2 Resource Server for custom tenant

      • • asenjowork
      5
      1
      Votes
      5
      Posts
      2.7k
      Views

      danD

      @asenjowork Awesome, I'm glad you figured it out!

    • Y

      Unsolved Mobile phone format validation for MFA SMS enable page

      • • youchuan990316
      2
      1
      Votes
      2
      Posts
      1.6k
      Views

      danD

      Hiya @youchuan990316 You should be able to do this using javascript. I'm not familiar with particular libraries or methods, but google has a number of options.

      You can modify the Account two-factor enable theme page.

      Hope this helps.

    • H

      Unsolved MFA web hooks

      • • harish_reddy
      4
      0
      Votes
      4
      Posts
      1.2k
      Views

      danD

      @harish_reddy Thanks for the feedback, we appreciate it. While I think it is unlikely we'd separate out those webhooks, you are welcome to add a GH issue with your feedback and we can see how others in the community feel about the topic.

    • T

      Unsolved bcrypt issue

      • • tiago
      4
      0
      Votes
      4
      Posts
      1.4k
      Views

      danD

      @tiago Awesome!

    • danD

      Solved I only want starter for dev instances but essentials for my prod instances

      • • dan
      4
      0
      Votes
      4
      Posts
      1.5k
      Views

      danD

      Hiya @harish_reddy ,

      That's a cool idea. We don't have any plans to do so right now.