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

      Unsolved "Invite" users to tenant via email without password

      • • alan.wood
      2
      0
      Votes
      2
      Posts
      714
      Views

      danD

      and/or detect that the user was an IdP managed user?

      In the reconcile lambda from the IdP (here's the docs for the OIDC lambda), you can set whatever data you want on the user.data field, so you could set user.data.idpUser = true. Then you can access that value from the self edit page freemarker template and decide to show or hide the password field.

      I get that this isn't as straightforward as it would be if the original feature request was implemented 🙂 . But I think there's a path forward here that doesn't wait on that.

    • danD

      Unsolved See user and entity elasticsearch indexes when running in FusionAuth cloud

      cloud elasticsearch index • • dan
      2
      0
      Votes
      2
      Posts
      1.8k
      Views

      danD

      Elasticsearch access is not available for FusionAuth cloud deployments.

      I would recommend running FusionAuth locally, which should display similar results as your cloud deployment for how the user and the entities are mapped.

    • danD

      Unsolved How can I activate or deactivate a user?

      active inactive • • dan
      2
      0
      Votes
      2
      Posts
      1.3k
      Views

      danD

      Users can be deactivated and reactivated using the User API. The following FusionAuth documentation outlines deactivation (or soft-delete) and reactivation:

      Delete A User (soft-delete them, don't hard delete them)

      Reactivate a User

      HTH

    • danD

      Can I get permissions granted to a user against an Entity in an OAuth grant

      entities authorization code grant • • dan
      3
      0
      Votes
      3
      Posts
      4.9k
      Views

      danD

      The ability to search grants for a user was a gap in our documentation. We have since released an update to showcase/describe the use case.

      https://fusionauth.io/docs/v1/tech/apis/entity-management/grants/#search-for-grants

      Your API endpoint call will look like below:

      GET /api/entity/grant/search?userId={uuid}

      Additional possible filtering functionality is documented in this feature request.

    • F

      Unsolved Custom theme deployment between environments

      theme deployment application api docs • • fred.fred
      2
      0
      Votes
      2
      Posts
      7.1k
      Views

      danD

      @fred-fred said in Custom theme deployment between environments:

      It looks like we can transport with the API using Theme Update Endpoints and sharing environment API keys so one environment can see the next environment to copy the themes over.

      Yes, that's what I'd recommend. You could have different API keys for each environment and have the script that promotes the theme pull the API key from a secrets store. Make sure you limit the API key to the themes endpoint.

      You also might be interested in this post: https://fusionauth.io/community/forum/topic/1306/parameterizing-themes which indicates how you can have the same theme files point to different resources in staging/prod/dev/etc.

    • O

      Unsolved Password policy per user

      • • omryc3
      2
      0
      Votes
      2
      Posts
      1.8k
      Views

      danD

      @omryc3 Have you tested the authentication tokens and seeing if the password policy applies to them? I'm not sure myself, but it should be an easy test to run.

      It is not possible to have different password rules apply to users in the same tenant, since they are tenant level policies and apply to every user within a tenant.

      You could have the users that you want to have no password expiration use OIDC to login against a third party server. (And that server could be a different FusionAuth instance.)

    • M

      Unsolved Which regular expression is used to verify the users phone number?

      • • markus.wild
      2
      1
      Votes
      2
      Posts
      2.6k
      Views

      danD

      @markus-wild

      Hmmm. A few more details would be helpful. Are you using the basic self service registration form? And the mobilePhoneNumber field? Or is it some other field that you are using?

      What is the exception you are seeing? Where does it show up? What does the end user see?

      Also, what version of FusionAuth are you using?

      Thanks!

    • P

      Unsolved Fusion Auth w/ Vitess DB

      • • psmiddy
      3
      0
      Votes
      3
      Posts
      3.9k
      Views

      P

      @maciej-wisniowski Thanks for your help. I was able to connect but had some trouble from then on. I will create an issue on github and see if official support can be added.

      Is there a recommended way of running fusion auth on a clustered database?

    • danD

      How do you assign a theme to an application?

      theme faq application • • dan
      5
      0
      Votes
      5
      Posts
      6.4k
      Views

      danD

      @fred-fred

      Hiya,

      In addition to what @maciej-wisniowski suggested, if you have a paid license you can now have application specific themes (one theme per application; if no application theme is specified, it defaults to the tenant).

      You can see how that works in the sandbox environment (sandbox.fusionauth.io). I believe that feature landed in 1.27.0.

      You can buy a licensed edition here.

    • E

      Unsolved Cann't import_users in Django

      • • engineering 0
      4
      0
      Votes
      4
      Posts
      3.9k
      Views

      M

      @engineering-0 Try this:

      users = [] for user in User.objects.all(): user_data = {} ... encryption_scheme = "salted-pbkdf2-hmac-sha256" algorithm, iterations, salt, password_hash = user.password.split('$') salt = base64.b64encode(salt.encode('utf-8')).decode('utf-8') user_data['password'] = password_hash user_data['encryptionScheme'] = encryption_scheme user_data['factor'] = int(iterations) user_data['salt'] = salt users.append(user_data)
    • T

      Unsolved How should i validate Id token

      • • trashmi13
      2
      0
      Votes
      2
      Posts
      1.9k
      Views

      danD

      @trashmi13

      Hiya. You can validate this token using any JWT library, as Id Tokens are valid JSON Web Tokens.

      I'm not sure what language you are using, but here's an example for java using the fusionauth-jwt library:

      List<JSONWebKey> keys = JSONWebKeySetHelper.retrieveKeysFromJWKS("https://www.googleapis.com/oauth2/v3/certs"); Map<String, Verifier> publicKeyVerifiers = new HashMap<String,Verifier>(); for (JSONWebKey key : keys) { String publicKey = key.x5c.get(0); Verifier verifier = RSAVerifier.newVerifier(publicKey); // assuming all keys are RSA. You could switch on type as well. String kid = key.kid; publicKeyVerifiers.put(kid, verifier); } // Verify and decode the encoded string JWT to a rich object JWT jwt2 = JWT.getDecoder().decode(encodedJWT, publicKeyVerifiers); // make sure the aud and issuer are as expected if (jwt2.audience.equals("gge44ab3-027f-47c5-bb07-8dd8ab37a2d3") && jwt2.issuer.equals("www.acme.com") && (jwt.expiration.toEpochSecond() > (System.currentTimeMillis()/1000) )) { // valid id token }

      Hope this helps.

    • J

      Unsolved This topic is deleted!

      • • joedematteo9
      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • A

      Unsolved Using reconsile api to get access token

      • • adil
      6
      0
      Votes
      6
      Posts
      2.9k
      Views

      danD

      Seems like a bug, filed an issue: https://github.com/FusionAuth/fusionauth-issues/issues/1503

    • C

      Unsolved Silent Configuration Mode Failed

      • • classbazaarco
      2
      0
      Votes
      2
      Posts
      3.2k
      Views

      joshuaJ

      @classbazaarco

      What are you seeing in the event and error logs for FusionAuth?

      https://fusionauth.io/docs/v1/tech/troubleshooting/#logs

      Also, linking some additional doc here - https://fusionauth.io/docs/v1/tech/guides/silent-mode/#overview

      Thanks,
      Josh

    • danD

      Unsolved Sessions per application

      registrations sessions • • dan
      2
      0
      Votes
      2
      Posts
      1.5k
      Views

      danD

      Yes. A user can have one-to-many refresh tokens per application.

    • J

      Having issues with Angular 11 and Fusion Auth Cloud???

      • • justinfox
      2
      0
      Votes
      2
      Posts
      2.8k
      Views

      danD

      @justinfox Sorry for your frustration. Here is an angular app blog post and the authentication flows.

      https://fusionauth.io/blog/2020/03/31/how-to-securely-implement-oauth-angular/

      https://fusionauth.io/learn/expert-advice/authentication/login-authentication-workflows/

    • M

      Difference between product privacy policy and DPA?

      • • mikko.koskinen
      2
      0
      Votes
      2
      Posts
      1.1k
      Views

      danD

      @mikko-koskinen This is probably a better question for the sales team than the community forum.

      I'd suggest reaching out to them at https://fusionauth.io/contact/

    • Q

      Unsolved This topic is deleted!

      • • quent
      2
      0
      Votes
      2
      Posts
      26
      Views
    • danD

      Unsolved If I have a PWA, how often to users need to login

      login refresh token • • dan
      2
      0
      Votes
      2
      Posts
      3.2k
      Views

      danD

      The short answer is however often you want, but at least once per device.

      You basically can set up your refresh token policy to have your refresh tokens live for a very long time (as long as you are comfortable with the security risk; make sure to secure the refresh token carefully). That is controlled in in the application configuration: https://fusionauth.io/docs/v1/tech/core-concepts/applications/#jwt

      Then, every time an access token expires, you can mint a new one with the refresh token. Here are the APIs you'd be interested in calling:

      https://fusionauth.io/docs/v1/tech/apis/jwt/

    • E

      Reasonable connection limits?

      • • elliotdickison
      2
      0
      Votes
      2
      Posts
      793
      Views

      danD

      @elliotdickison

      We typically see the chokepoints for FusionAuth in either the CPU (when doing a lot of password hashing) or the database.

      More here: https://fusionauth.io/docs/v1/tech/installation-guide/monitor/#load-testing

      Since usage varies, I suggest you perform your own load testing to determine connection limits. Would love to see your conclusions!