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

    Moved Unsolved refresh token
    2
    0 Votes
    2 Posts
    5k 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/
  • Reasonable connection limits?

    Moved
    2
    0 Votes
    2 Posts
    2k 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!
  • Custom MFA using step up API

    Moved
    2
    1 Votes
    2 Posts
    1k Views
    danD
    @elciok There is currently no way to determine if someone has gone through step-up auth via the token. I did just add an issue: https://github.com/FusionAuth/fusionauth-issues/issues/1491 feel free to add comments there. What you can do is use a JWT populate lambda to add a claim to the JWT if the user has any MFA methods enabled. When you do a step up you'll get a token and you can look at that claim. HTH
  • Enter email only for SAML

    Moved Unsolved
    2
    0 Votes
    2 Posts
    1k Views
    ?
    @admin-3 I think so. See the "Managed domains" configuration in the SAML v2 IdP. https://fusionauth.io/docs/v1/tech/identity-providers/samlv2/#create-a-saml-v2-identity-provider Adding one or more managed domains for this configuration will cause this provider not to be displayed as a button on your login page. Instead of a button the login form will first ask the user for their email address. If the user’s email address matches one of the configured domains the user will then be redirected to this login provider to complete authentication. If the user’s email address does not match one of the configured domains, the user will be prompted for a password and they will be authenticated using FusionAuth.
  • Send additional params to identity providers link

    Moved
    5
    0 Votes
    5 Posts
    4k Views
    joshuaJ
    @alex Thanks for the additional information! It sounds like this is already an active issue that you can upvote for consideration into future versions of FusionAuth. https://github.com/FusionAuth/fusionauth-issues/issues/1335 If a good workaround comes to mind, I will be sure to let you know. Thanks, Josh
  • 0 Votes
    8 Posts
    6k Views
    joshuaJ
    @chrissmueller328 There is some discussion of this (mostly focused on SAML, but OIDC is referenced and considered as well) https://github.com/FusionAuth/fusionauth-issues/issues/566 I will review further and see if the team has any other thoughts. Thanks, Josh
  • 0 Votes
    2 Posts
    867 Views
    joshuaJ
    @rekhas-fahrizi Can you provide a few more details about the request you are making (maybe a few code samples would be helpful as well)? Thanks, Josh
  • Code flow React / .NET Architecture

    Moved
    6
    0 Votes
    6 Posts
    2k Views
    joshuaJ
    @andrew-boyd Perfect! Sounds good1 Josh
  • 0 Votes
    2 Posts
    794 Views
    danD
    First, we recommend a webview or system browser. They have different strengths. The system browser is recommended by the security BCP and is preferred if the mobile app is not built by the same development organization as is running the identity provider (FusionAuth). However, if both mobile app and IdP are owned by the same organization, a webview is fine too, and can offer more control over the user experience. That said, some folks, as mentioned in the question, don't want a webview. They want to build the login experience out of native UI components. This gives them full control: In that case, there are a few consequences: the Authorization Code grant is not possible to implement, because it requires the user authenticate at FusionAuth. You will be re-implementing all of the "hosted login pages" logic and flow using the API. See https://fusionauth.io/docs/v1/tech/core-concepts/integration-points/#hosted-login-pages for the list of functionality you should be prepared to re-implement. Your mobile app will see username and passwords. Prepare for that from a security perspective. You will need to choose between the password grant and the login API These are functionally equivalent. Arguments in favor of the Login API: Richer response (you get different status codes for things like MFA required or "user not registered to this application") Can be protected with a tightly limited API key. You could actually provision an API key per mobile device if needed, using the API key API and some custom code: https://fusionauth.io/docs/v1/tech/apis/api-keys/ Against: You must embed an API key in your application or relax certain security settings Tightly couples your application to FusionAuth Arguments for the password grant: It's an OAuth grant, so code written against it is more portable. No API key needed. No security requirements need to be loosened. Arguments against: You'll have to be prepared to parse JSON in the response if you are in any exceptional cases (MFA enabled, etc). HTH.
  • SAML Populate Lambda add user group names

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    H
    @joshua Thanks. I've up-voted a few of those open issues. Since I'm trying to make this work for a COTS application I don't have the luxury of injecting another API call. For now I'm pretending that the groupId being returned is the LDAP distiguished name for the group (I prefixed it in the Lambda with dn=). Then I can trick the application to looking up the group by the LDAP dn instead of name.
  • Can I run my own database behind my FusionAuth Cloud instance?

    Moved
    1
    1 Votes
    1 Posts
    1k Views
    No one has replied
  • Can you run FusionAuth in kubernetes?

    Moved kubernetes runtimes faq
    7
    2 Votes
    7 Posts
    12k Views
    danD
    As of q4 2021, FusionAuth officially supports Kubernetes. You can read the docs here: https://fusionauth.io/docs/v1/tech/installation-guide/kubernetes/
  • Different base resources for an environment

    Moved theme environments customization
    2
    0 Votes
    2 Posts
    7k Views
    danD
    The best way to do this is to put a value on the tenant.data object. From there you can access it in each theme. So, for the tenant in the dev environment, set tenant.data.assethost to dev.example.com. For the prod environment, set tenant.data.assethost to dev.example.com. Then, in your theme, you'd have something like this: <link rel="stylesheet" href="${tenant.data.assethost}/styles.css"/> The reason to use the tenant object is that it is available on every theme template. This does mean that your tenant configuration will differ slightly between environments. You can also replicate this field value between tenants if you are using multiple tenants.
  • Cross-platform SSO

    Moved
    4
    0 Votes
    4 Posts
    2k Views
    M
    What do you mean by 'user logs into desktop application'? How would you like to implement it? If you implement step 1. as I've described in my previous post (by opening the browser window to log the user in) then there will be an SSO session in the browser already. This is the flow that OAuth specs define for native applications, eg. desktop ones: https://datatracker.ietf.org/doc/html/rfc6749#section-9 This means that in step 3. when the browser is opened, the user is already authenticated.
  • Additional resources for identity

    Moved authentication authorization resources
    2
    0 Votes
    2 Posts
    3k Views
    danD
    I have enjoyed these books: https://www.manning.com/books/oauth-2-in-action very specific to OAuth, lots of code) https://www.apress.com/gp/book/9781484250945 More focused on bigger identity strategies and problems. Also, the IDPro body of knowledge is free and useful: https://idpro.org/body-of-knowledge/
  • how to add dynamic parameters to the confirmation link

    Moved
    2
    0 Votes
    2 Posts
    848 Views
    danD
    Hiya, It depends on what you mean by "dynamic". What are they based dynamically based on? If they are based on attributes of the user, you could pull them from user.data. If they are random or time based, you could use the method outlined here: https://stackoverflow.com/a/51554484/203619 I'd also suggest testing to see if any parameters you add to the confirmation link are received by the destination page. I'm not sure if any processing happens that might strip unknown parameters. (I don't think so, but am not certain.) Let us know what you find!
  • Server Availability

    Moved
    4
    0 Votes
    4 Posts
    1k Views
    danD
    Hiya, You should review the APIs to determine if FusionAuth can meet your needs. You can sync almost everything. One notable exception is the password hash and other info around it (salt, etc) which are not available via API call.
  • 0 Votes
    2 Posts
    949 Views
    joshuaJ
    @mg Good question! Aspects of this question are covered in our FAQ. https://fusionauth.io/license-faq/#19 https://fusionauth.io/license-faq/#11 Additional information can be found by contacting our sales team should you have a business need for continuity plans. Please use the contact form found on the home page. https://fusionauth.io/contact/ Thanks, Josh
  • .NET API FusionAuth pipeline setup not authenticating with token

    Moved
    2
    0 Votes
    2 Posts
    2k Views
    B
    Instead of using an OpenIdConnect authentication method I instead used a JWT Bearer like so: services.AddAuthentication(options => { options.DefaultScheme = JwtBearerDefaults.AuthenticationScheme; options.DefaultChallengeScheme = JwtBearerDefaults.AuthenticationScheme; }) .AddJwtBearer(JwtBearerDefaults.AuthenticationScheme, opt => { opt.Authority = "https://my.fusionauth.instance"; opt.RequireHttpsMetadata = true; opt.SaveToken = true; opt.TokenValidationParameters = new TokenValidationParameters() { ValidAudience = "my application id / client id"; }; }); I could add the oidc back and use it to so long as I decoreate my Authorize attributes with that authentication scheme. Now the pipeline calls my fusion auth instance and checks the token matches and has not been tampered with. To get this to work I had to create my own Key in FusionAuth and apply it to the JWT settings of my application. Then when the runtime calls https://my.fusionauth.instance/.well-known/jwks.json it returns the key needed to validate the token. Now to get roles to work ...
  • Copied tenant, email can't be sent?

    Moved email tenants
    2
    0 Votes
    2 Posts
    3k Views
    danD
    A couple of things: https://fusionauth.io/docs/v1/tech/troubleshooting/#troubleshooting-email has troubleshooting tips worth checking out. The UI copy doesn't copy the SMTP password, so double check that as well.