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

      Solved How does SSO work with multiple client SSO servers?

      sso azure gsuite • • dan
      2
      0
      Votes
      2
      Posts
      5.1k
      Views

      danD

      This is generally done by using the domain configuration. For example, all users with an email address domain of acme.com can be configured to use a particular SAML or OpenID Connect configuration.

      As soon as you configure one IdP with a domain, the login panel will collect the email address first to understand if we need to ask for a password or forward them along to a federated identity provider.

      Read more about managed domains here: https://fusionauth.io/docs/v1/tech/identity-providers/openid-connect/

    • danD

      Solved Does anyone have recommendations on how services should authenticate to apps that use FA?

      api authorization oauth • • dan
      2
      0
      Votes
      2
      Posts
      8.3k
      Views

      danD

      This seems like a case for the client credentials grant, which is unfortunately still on the roadmap: https://github.com/FusionAuth/fusionauth-issues/issues/155 Not sure that would help with the rotation, though. Just like username and password approach, I don't believe the credentials grant lets you rotate creds in.

      Other options: you could look into a third party api management solution (as mentioned here).

      Could you use longer lived JWTs but then a webhook to revoke them, as outlined here: https://fusionauth.io/learn/expert-advice/tokens/revoking-jwts ?

      You can control the duration on an application by application basis (so all JWTs issued by one application have to have the same length). You could create a 'services' application that only these services would have registrations with, not sure if that would work.

    • danD

      Solved How does one add custom claims to the JWT issued by the OAuth flow?

      claims jwt oauth • • dan
      2
      0
      Votes
      2
      Posts
      10.2k
      Views

      danD

      In general you are going to want to use a Lambda to populate additional claims: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate

      This issue has some notes about Hasura in particular: https://github.com/FusionAuth/fusionauth-issues/issues/61

    • L

      Kubernetes deployment of version 1.16.0-RC.1

      • • laurent.michel
      10
      0
      Votes
      10
      Posts
      1.6k
      Views

      robotdanR

      If you get an unauthorized message in the UI when you submit a form it is due to your network configuration. This error is caused by our protective measures for cross site request forgery.

      I would assume you are seeing an error on the admin page to indicate your proxy configuration is invalid. If not, ensure you have the correct X-Forwarded-Port, X-Forwarded-Host, X-Forwarded-Proto headers set when behind a proxy.

      If these values are not set, or are invalid then when we compare the Origin header against the request we will fail our CSRF assertions and return a 401.

    • danD

      Can you access timeout settings (for password resets, for example) in the email templates?

      templates passwordless password reset email • • dan
      3
      0
      Votes
      3
      Posts
      1.1k
      Views

      danD

      See also https://github.com/FusionAuth/fusionauth-issues/issues/612

    • danD

      Does template localization include the freemarker date and time built-in function?

      templates datetime freemarker • • dan
      2
      0
      Votes
      2
      Posts
      1.4k
      Views

      danD

      Yes. Set the locale in the template and this will display the correct values, for example the month name.

      More on freemarker here: https://freemarker.apache.org/docs/

      Here's how to set the locale in a template: https://freemarker.apache.org/docs/ref_directive_setting.html

    • trevorT

      Is there a way to add users in bulk?

      • • trevor
      2
      1
      Votes
      2
      Posts
      762
      Views

      trevorT

      You may use the Import Users API to bulk import users.

      There are a couple of reference example scripts in our https://github.com/FusionAuth/fusionauth-import-scripts repository that you can use as a starting point. Please feel free to make a PR to this repository to add our import script if you think it could be useful for others!

    • danD

      Is there any way to blacklist IPs?

      networking security blacklist faq • • dan
      2
      0
      Votes
      2
      Posts
      7.2k
      Views

      danD

      Not currently. We've discussed it and haven't ruled it out.

      However there are so many products, both free and commercial, that do this well.

      You can always put a firewall on the server that FusionAuth is running or put a proxy in front of it.

    • danD

      Is there any easy way to save and restore settings to different environments?

      setup development settings faq • • dan
      2
      0
      Votes
      2
      Posts
      5.9k
      Views

      danD

      You could look at kickstart: https://fusionauth.io/docs/v1/tech/installation-guide/kickstart

      This would be a good fit if the other devs fusionauth instances are going to be starting from scratch.

      Otherwise you might want to vote for https://github.com/FusionAuth/fusionauth-issues/issues/560 which talks about a different path forward (which is as of now unimplemented).

    • danD

      Can we set multiple "aud" claims in FusionAuth?

      lambda claims jwt faq • • dan
      2
      0
      Votes
      2
      Posts
      3.5k
      Views

      danD

      We do not support this directly in FusionAuth, but you could use a Lambda to set the aud claim to whatever you want.

      The specification allows for a string value, or an array of string values, so you could create a Lambda with something like: jwt.aud = [ 'foo', 'bar' ];

      More about Lambdas and JWTs here: https://fusionauth.io/docs/v1/tech/lambdas/jwt-populate

    • danD

      Can we search on userId?

      faq user search admin ui • • dan
      2
      0
      Votes
      2
      Posts
      5.7k
      Views

      danD

      You can search on the user id. While it doesn't say that in the placeholder, it works.

    • B

      Does GitHub have endpoints to obtain OIDC id tokens?

      • • bfpgresearcher
      4
      0
      Votes
      4
      Posts
      1.1k
      Views

      danD

      @bfpgresearcher Happy to help 🙂

    • danD

      How should I validate access tokens?

      access tokens validation faq • • dan
      2
      0
      Votes
      2
      Posts
      10.8k
      Views

      danD

      There are a few things to consider.

      how long tokens live for what happens if permisssion are modified in FusionAuth but the protected resource still allows access? any performance worries due to a large number of accessToken validation calls being made by the protected resource.

      With the first approach (validating the access token without communicating with FusionAuth) the holder of the token will be able to access your API as long as the token is valid (unless the API server communicates periodically with FusionAuth to check the validity). In addition, changes to user privileges won't take place until the JWT expires and the client retrieves a new access token using the refresh token.

      With the second approach, if a token is revoked in FusionAuth (if for instance the user is disabled) the access is cut off immediately. The cost is that you're making an additional network call every time, which has a performance impact. Note that if you could use the userinfo endpoint instead of the token if you want updated user claims. The token endpoint isn't going to give you that information, just a yes/no depending on if the token is valid.

      So it's hard to make a recommendation without knowing what the consequences of unauthorized access to your API or protected resource would be. It also would be helpful to know the expected traffic; if it is expected to be low, the performance impact of the second approach will be minimal.

    • Y

      Generated api key not an UUID but required in Python client

      • • yet
      3
      0
      Votes
      3
      Posts
      1.1k
      Views

      danD

      Ah, looks like someone else already shared a fix. https://github.com/FusionAuth/fusionauth-python-client/pull/6

    • danD

      What is Kickstart?

      kickstart faq • • dan
      1
      0
      Votes
      1
      Posts
      6.8k
      Views

      No one has replied

    • danD

      This topic is deleted!

      • • dan
      1
      0
      Votes
      1
      Posts
      2
      Views

      No one has replied

    • danD

      Each user has one password, correct?

      user faq • • dan
      2
      0
      Votes
      2
      Posts
      7.8k
      Views

      danD

      That is correct. Each user can have one email address, one username, or both. Either of these values can be used to login, and therefore the values are unique within the tenant.

      We do have a username field on a registration, but it is not used for login.

      There's a github issue open for multiple identities: https://github.com/fusionauth/fusionauth-issues/issues/1

    • F

      Elasticsearch Utilization [Self Hosted - Community Edition]

      • • firrae
      9
      1
      Votes
      9
      Posts
      10.6k
      Views

      danD

      @robotdan Thanks Dan!

    • K

      Exception: ReferenceError: FormData is not defined calling exchangeOAuthCodeForAccessToken of TypeScript library

      • • ken.ono
      2
      0
      Votes
      2
      Posts
      978
      Views

      robotdanR

      Hi,

      I think this was recently resolved via this issue https://github.com/FusionAuth/fusionauth-typescript-client/issues/16

      Can you take a look and see if that looks like your symptom?

    • danD

      If we're hitting the .well-known endpoint, is there any way to select which tenant we're obtaining the manifest for?

      oauth tenant faq • • dan
      2
      0
      Votes
      2
      Posts
      1.7k
      Views

      danD

      Yes, you can provide the tenantId on the request as a parameter. More information here: https://fusionauth.io/docs/v1/tech/oauth/endpoints#openid-configuration