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

      Issue with bcrypt on import of users

      bcrypt password hashed password • • dan
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      danD

      You'll need to separate out the hash and the salt on the Import API.

      For example, the hash $2a$10$N9qo8uLOickgx2ZMRZoMyeIjZAgcfl7p92ldGxad68LJZdL17lhWy would be split out to the fields:

      factor: 10
      salt: N9qo8uLOickgx2ZMRZoMye
      password: IjZAgcfl7p92ldGxad68LJZdL17lhWy

      The Import API does not parse this value and separate it out for you. You need to do so.

      Here is an example import script (in Ruby): https://github.com/FusionAuth/fusionauth-import-scripts/blob/master/auth0/import.rb#L47

    • T

      Reusable passwordless codes?

      passwordless • • trevorr
      2
      0
      Votes
      2
      Posts
      993
      Views

      joshuaJ

      Hi @trevorr,

      I can't say that we have an out-of-box solution for you on this directly. If you would like to submit a feature request fully outlining your use case, we could have our dev team review it.

      I have a couple of other thoughts:

      we want to send email from our marketing platform for consistent tracking

      Remember that you have the ability to augment the user object with custom data (User API -- user.data field). Some of this data could be a tracking code that links back to your marketing platform, for instance.

      we want a consistent look and feel in the password setting UI (simulating Material UI in a FA theme seems infeasible),

      FreeMarker templating does accept HTML and other modern inputs to allow you to custom craft a landing page that meets your brand requirements (You can check out some examples of exactly this, here). Anecdotally, I have heard of some customers that use services such as MailChimp/ContantContact/Drip to create templates and then import them into FreeMarker. It is outside of my domain expertise, but it seems this is done often enough.

      c) FusionAuth doesn't seem to have a way to send the user into our app after they set a password.

      This is possible but would require some additional javascript code. See Here

      Webhooks are also a powerful tool within FusionAuth to notify when certain other user actions occur. API documentation here

      If anything else comes to mind, I will post back here! I hope this helps!

      Thanks,
      Josh

    • J

      JWT Populate Lambda and Application properties

      • • john.mooney
      3
      0
      Votes
      3
      Posts
      686
      Views

      danD

      To add on to what @joshua was saying, we are pretty careful about what we make available in our lambda because performance is really important and we don't want to start loading a bunch of data that isn't required. That said, I understand the current lambda implementation isn't meeting your needs, however.

      Two issues you may want to review, comment on and vote up:

      https://github.com/FusionAuth/fusionauth-issues/issues/229

      https://github.com/fusionauth/fusionauth-issues/issues/267

      Both of these issues address your desired functionality in different ways.

    • J

      Facing duplicate key errors on high load

      database connectors • • jm.oliver
      4
      0
      Votes
      4
      Posts
      2.6k
      Views

      joshuaJ

      Internal Note: tracking via https://github.com/FusionAuth/fusionauth-issues/issues/1231

    • A

      Webhook events for multi part forms

      • • alessandrojcm
      3
      0
      Votes
      3
      Posts
      2.4k
      Views

      A

      Hi @joshua , thanks for your response.

      Is the code that you are sending related to MFA? Or some other business logic? If MFA related, there may be more options that we can explore.

      My use-case is related to our business logic, our app is only available in certain countries; thus we require users to validate they're in one of those countries via a code sent to their phones. I've read the docs about the Form API but I don't quite see how would it solve this issue (and, as you said, would negate the benefits of advanced forms). The other option would be just to validate the phone outside FusionAuth (like we're doing right now), but I would like to migrate all the registration-related steps into FusionAuth.

    • danD

      Does FusionAuth support the ability to use codes for verification?

      verification code • • dan
      2
      0
      Votes
      2
      Posts
      1.7k
      Views

      danD

      Yes. As of 1.27, you can use a verification strategy of FormField. This is configured on the tenant: https://fusionauth.io/docs/v1/tech/apis/tenants/

      You then provide the one time code in the oneTimeCode request body parameter. More about this in the email verification docs: https://fusionauth.io/docs/v1/tech/apis/users/#verify-a-users-email

      Note that this feature only works with email gating at the current time, which is a reactor feature requiring a paid license.

    • A

      Passwordless registration

      • • alessiocata
      3
      0
      Votes
      3
      Posts
      964
      Views

      joshuaJ

      @naughtly-keller! You are right! Good spot!

      @alessiocata I would recommend you peruse the entire guide that @naughtly-keller links to. It goes through many different situations in which Passwordless can be applied and used within FusionAuth. Pick the one that is best suited for your business needs.

      Thanks,
      Josh

    • joshuaJ

      Where would I change the "X-Frame-Options" header when running FusionAuth from a RPM package

      • • joshua
      3
      0
      Votes
      3
      Posts
      848
      Views

      F

      Setting the "Allowed origins" in the Application settings did the trick.

    • joshuaJ

      MFA Upgrade Question

      • • joshua
      2
      0
      Votes
      2
      Posts
      886
      Views

      F

      To clarify my current MFA delivery setup (v1.25), I have it configured with "delivery": "None" and this enables the Authenticator and backup codes via the Twilio integration.

      Will this keep working? Or do I have to update each user and enable the "sms" method? Is it even possible to enable the "sms" method without having a code that was sent to the mobilePhone of the user?

    • joshuaJ

      Question about the Multi-Factor implementation Defaults

      • • joshua
      2
      0
      Votes
      2
      Posts
      612
      Views

      joshuaJ

      Unfortunately in this case, I believe this is the current expected behavior for the MFA workflow.

      If you have a specific use case that necessitates changes to this, please feel free to log a feature request with all the details and any other considerations 🙂 👍

    • danD

      Send a notification when a password expires?

      • • dan
      3
      0
      Votes
      3
      Posts
      637
      Views

      A

      https://github.com/FusionAuth/fusionauth-issues/issues/1234

    • danD

      I want to send email from my docker image

      email docker • • dan
      2
      1
      Votes
      2
      Posts
      2.9k
      Views

      danD

      I end up using a docker image of mailcatcher.

      I use the default docker-compose.yml, but use this docker-compose.override.yml:

      version: '3' services: mailcatcher: image: yappabe/mailcatcher ports: - "1025:1025" - "1080:1080" networks: - mailcatcher search: image: docker.elastic.co/elasticsearch/elasticsearch:7.8.1 environment: cluster.name: fusionauth bootstrap.memory_lock: "true" discovery.type: single-node FUSIONAUTH_SEARCH_MEMORY: ${FUSIONAUTH_SEARCH_MEMORY} ES_JAVA_OPTS: ${ES_JAVA_OPTS} # Un-comment to access the search service directly # ports: # - 9200:9200 # - 9300:9300 networks: - search restart: unless-stopped ulimits: memlock: soft: -1 hard: -1 volumes: - es_data:/usr/share/elasticsearch/data fusionauth: depends_on: - search - mailcatcher environment: SEARCH_SERVERS: http://search:9200 SEARCH_TYPE: elasticsearch networks: - mailcatcher - search networks: search: driver: bridge mailcatcher: driver: bridge volumes: es_data:

      Then I configure the SMTP settings to use the hostname mailcatcher and the port 1025. I can then send email and view it in the mailcatcher interface, at localhost:1080.

      Here's the relevant dockerfile: https://github.com/yappabe/docker-mailcatcher/blob/master/Dockerfile

      Here's more about mailcatcher: https://mailcatcher.me/

    • danD

      username search against the database?

      username registrations • • dan
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      danD

      The user and registration may have a username field. The username field on the user is the one that can be used to login. In general you will want to use the Search API for those types of queries rather than directly accessing the database.

      The reason is because the API is documented and stable, and the database is undocumented and may change.

    • L

      Slow Elasticsearch queries

      • • luke.fishman
      2
      0
      Votes
      2
      Posts
      591
      Views

      joshuaJ

      Hi @luke-fishman,

      I have a few questions for you to see if we can get to the bottom of this.

      Is this an ongoing problem or has it recently surfaced? If recently surfaced, has anything changed which would slow your queries down? For instance, have you made any architecture changes? Was this user query much faster in the recent past?

      What do queries from the Admin UI look like (are they performant?)?

      Other things to evaluate include the size of your database and your architecture to make sure it's right-sized for your use case.

      Finally, are you seeing anything in the error and event logs in FusionAuth (or in your server) that would indicate a larger problem?

      Thanks,
      Josh

    • danD

      Default tenant id in client library

      client-library default tenant • • dan
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      danD

      You will need to obtain the default tenantId from the UI.

      If you are using kickstart, you have the option to set the default tenantId so that it is predictable.

    • A

      Unsupported Java Version

      • • anuradha
      2
      0
      Votes
      2
      Posts
      424
      Views

      danD

      Thanks for filing a github issue as well!

      https://github.com/FusionAuth/fusionauth-issues/issues/1227

    • T

      Lambda reconcile does not remove role from registration

      azure lambda oidc reconcile registration • • tl+fa
      12
      0
      Votes
      12
      Posts
      6.8k
      Views

      joshuaJ

      Hi @tl-fa,

      You can view our Roadmap Guidance regarding how features are implemented into FusionAuth. A good snapshot of current development can be found here as well.

      We will certainly update any related issue cards as development moves forward!

      Thanks!
      Josh

    • M

      Multiple authentication possibilities

      • • maarten
      3
      0
      Votes
      3
      Posts
      926
      Views

      joshuaJ

      @maarten,

      Glad that you got this working! If you have any other tips about how you got it working, that might help other users in a similar situation.

      Glad it worked out!

      Thanks,
      Josh

    • danD

      What password rule options does FusionAuth have?

      password password rules • • dan
      2
      0
      Votes
      2
      Posts
      1.0k
      Views

      danD

      A duplicate of https://fusionauth.io/community/forum/topic/438/password-complexity-rules

      But the easiest way to see this is in the tenant API, since that is where they are configured.

      At time of writing, here are the options.

      Screen Shot 2021-05-12 at 1.50.12 PM.png

    • D

      Application Specific Login Theme

      • • developer
      6
      0
      Votes
      6
      Posts
      1.3k
      Views

      danD

      Awesome, glad to help.

      Just to be transparent, application theming requires a paid edition license. You can buy one here: https://fusionauth.io/pricing/editions/