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

      Filtering/limiting user data

      user-data • • Moonshine
      9
      0
      Votes
      9
      Posts
      20.6k
      Views

      danD

      Hi James,

      Glad to help! Let us know if you have any more questions.

    • K

      Successful mobile integrations using SFSafariViewController or Chrome Custom Tab?

      • • keith.sherwood
      1
      1
      Votes
      1
      Posts
      271
      Views

      No one has replied

    • H

      Complete Facebook Login api cannot work with token returned from facebook login api

      • • hey
      3
      0
      Votes
      3
      Posts
      478
      Views

      H

      Hi Dan

      Thanks a lot. It's fixed. The reason is the wrong configuration in facebook account.

      Regards
      Co

    • danD

      Length of time for authorization code

      authorization code grant lifetime duration • • dan
      2
      0
      Votes
      2
      Posts
      1.6k
      Views

      danD

      It's configurable. If you go to the tenant details page, then to the Advanced tab, you'll see the setting there; it's called Authorization Code. It's also documented in the tenant API, search for tenant.externalIdentifierConfiguration.authorizationGrantIdTimeToLiveInSeconds here: https://fusionauth.io/docs/v1/tech/apis/tenants

      Looks like valid durations are between 1 and 600 seconds.

    • danD

      How can I get all users active in the last three months?

      active users users • • dan
      2
      0
      Votes
      2
      Posts
      969
      Views

      danD

      To get User Ids, you’d want to use the Search API, and make requests in smaller windows to keep under 10k and than add the results. For example, you could request all users with a username starting with a, and then b, and so on. Definitely recommend scripting this.

      As long as you have enough RAM for ElasticSearch, 10k for numberOfResults should be just fine. You’ll just need to make sure your query is narrow enough such that the totalNumberOfResults that comes back from FusionAuth is below 10k, otherwise you won’t know for sure if you received an exhaustive result set from your query.

      We will be enhancing the Search API shortly to work around this Elasticsearch limitation (github issue).

    • danD

      List all users

      reporting users • • dan
      2
      0
      Votes
      2
      Posts
      790
      Views

      danD

      There is a Totals report that is available in the UI or API.

      https://fusionauth.io/docs/v1/tech/apis/reports#generate-totals-report

    • danD

      Return URL with oidc-client.js

      client-library return url • • dan
      2
      0
      Votes
      2
      Posts
      1.7k
      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.2k
      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
      525
      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
      3.7k
      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
      3.7k
      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
      4.6k
      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
      2.9k
      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
      734
      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
      575
      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
      865
      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
      478
      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.4k
      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