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

      Return URL with oidc-client.js

      client-library return url • • dan
      2
      0
      Votes
      2
      Posts
      2.0k
      Views

      danD

      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.

    • danD

      Seeing "A request to the search index has failed. This error is unexpected" and I can no longer login with google

      search login failure google • • dan
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      danD

      Hmmm. Since you haven't made any changes and aren't seeing any other errors, can you try to reindex?

      Navigate to system and then re-index in the administrative user interface?

      That should solve the issue.

    • danD

      Elasticsearch error about locked files

      • • dan
      2
      0
      Votes
      2
      Posts
      702
      Views

      danD

      It looks like the ElasticSearch index is locked by a prior process. I'd attempt to see who has a lock on that file, or you could try to restart the elasticsearch service. net stop FusionAuthSearch and net start FusionAuthSearch should do it.

      From some googling, this may be a virus scanner, or perhaps some other Windows process may be causing this type of error with Elasticsearch.

    • danD

      Password validation rules

      passwords rules registration validation • • dan
      2
      0
      Votes
      2
      Posts
      4.1k
      Views

      danD

      Our validation takes in inverse approach. The setting is actually to require a non-alphanumeric character. So any character that is not alphabetic, or a digit, will satisfy this requirement.

      There is not a fixed set of symbols as this would reduce the password entropy, which is generally a bad idea.

    • danD

      Prevent redirect after forgot password flow?

      pkce forgot password login • • dan
      2
      0
      Votes
      2
      Posts
      4.1k
      Views

      danD

      When the user arrives at the Forgot Password we capture all of the OAuth2 state, including PKCE parameters. When the user completes this flow, we replay all of this state, so the login will complete using PKCE.

      If you want the Forgot Password flow to complete without this step, you can either handle Forgot Password in your SPA, or when you redirect them to the FusionAuth Forgot Password page /password/forgot - do not provide client_id on the request. If client_id is not provided, we will assume this is not within the OAuth2 workflow and we will not attempt to log the user in at the end of the flow. In this case, the user will end up on /password/complete.

    • T

      No refresh token using /api/login

      • • tarun.verghis
      5
      0
      Votes
      5
      Posts
      5.2k
      Views

      danD

      Glad you figured it out!

      I just filed a PR to tweak the docs to make it more clear: https://github.com/FusionAuth/fusionauth-site/pull/194

    • danD

      Updating a user's password and salt

      user-api password • • dan
      2
      0
      Votes
      2
      Posts
      3.3k
      Views

      danD

      If you’re looking to update the password, you can use the Update User API, or the Change Password API.

      Neither of these APIs accept a hashed password and salt however, it accepts a plain text password that it will in turn salt, hash and then persist.

      Check out both these APIs here: https://fusionauth.io/docs/v1/tech/apis/users

    • danD

      Rate limit password reset requests?

      password reset rate limiting • • dan
      2
      0
      Votes
      2
      Posts
      920
      Views

      danD

      This is not currently handled by FusionAuth. You would have to use another application firewall of some sort that offers rate limiting. Here's an example for nginx: https://docs.nginx.com/nginx/admin-guide/security-controls/controlling-access-proxied-http/

      We have discussed adding this feature, but due to the other options available it has not yet been prioritized. Feel free to open a feature request on GitHub.

    • J

      Google identity provider

      • • johndoexx
      4
      0
      Votes
      4
      Posts
      903
      Views

      danD

      Hiya,

      It looks like this use case is documented in the 'Complete the Google Login' section of the API documentation: https://fusionauth.io/docs/v1/tech/apis/identity-providers/google#complete-the-google-login

      High level:

      Developer does the Google login dance themselves Google returns a token Developer calls the IdP Login API as outlined in the above link.

      Hope that helps. I've also filed a PR against the documentation to highlight this functionality.

    • T

      user.email.verified webhook not firing

      • • twosevenxyz
      5
      0
      Votes
      5
      Posts
      1.3k
      Views

      danD

      Related bug report: https://github.com/FusionAuth/fusionauth-issues/issues/842

    • S

      This topic is deleted!

      • • strix
      1
      0
      Votes
      1
      Posts
      3
      Views

      No one has replied

    • S

      Setting SMTP settings

      • • strix
      2
      0
      Votes
      2
      Posts
      647
      Views

      danD

      Hmm. That's weird.

      I don't see anything wrong with your config, especially if your colleague uses it. I'd suggest:

      trying a different smtp host/solution (sendgrid has a free option) opening up a ticket with mailgun

      I tend to use a local solution like mailcatcher, since email deliverability is a bit of a dark art.

    • F

      Is there a way to connect multiple idp's to a single account?

      • • fusionauth_user
      5
      0
      Votes
      5
      Posts
      5.8k
      Views

      danD

      Hiya,

      If the user has the same email registered across multiple accounts (Facebook, Twitter, Google) they should be able to login with each of those and they'll be all tied to the same account in FusionAuth. If they are different email addresses, we currently have no way to reconcile them.

      But I think the user has to go through and sign in with each provider for FusionAuth to get the metadata into its system.

      These github issues might be of interest:

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

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

    • S

      This topic is deleted!

      • • strix
      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • danD

      Email verification without sending emails?

      registrations email verification • • dan
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      danD

      You could use the skipVerification parameter (set it to true) on the user or registration create statement, and then the https://fusionauth.io/docs/v1/tech/apis/users#resend-verification-email call with sendVerifyEmail set to false.

      This would give you a verificationId you could use with this API call: https://fusionauth.io/docs/v1/tech/apis/users#verify-a-users-email

    • danD

      Can you use FusionAuth with GraphQL?

      graphql api • • dan
      4
      0
      Votes
      4
      Posts
      5.4k
      Views

      danD

      @fusionauth_user, are you using Klemen's schema or did you create your own?

    • C

      FusionAuth and NestJS

      • • Caesius
      2
      0
      Votes
      2
      Posts
      745
      Views

      danD

      Hiya,

      A few questions for you?

      What version of FusionAuth are you running?

      What step throws the error?

      Did you walk through the 5 minute setup guide? That will ensure you have everything configured correctly on the FusionAuth side.

    • C

      How to open identity provider directly?

      • • cepahap854
      15
      0
      Votes
      15
      Posts
      37.4k
      Views

      robotdanR

      Related GitHub issue with details.
      https://github.com/FusionAuth/fusionauth-issues/issues/178

    • danD

      Facebook login doesn't request the first name and last name of the user

      • • dan
      3
      0
      Votes
      3
      Posts
      421
      Views

      danD

      This configuration should be available to you already using the IdP configuration.
      https://fusionauth.io/docs/v1/tech/identity-providers/facebook#create-a-facebook-identity-provider

      When using the fields and permissions values, can you get the user's first and last name?

    • F

      This topic is deleted!

      • • fusionauth_user
      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied