• Home
  • Categories
  • Recent
  • Popular
  • Pricing
  • Contact us
  • Docs
  • Login
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
  • C

    OpenID Service provided link does not work with Identity Providers

    • 3 Nov 2021, 16:27 • chrissmueller328 12 Nov 2021, 20:36
    8
    0
    Votes
    8
    Posts
    1.5k
    Views

    J 12 Nov 2021, 20:36

    @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

  • R

    Username and name is blank when create user with API (/api/user) occasionally

    • 5 Nov 2021, 08:47 • rekhas.fahrizi 9 Nov 2021, 18:42
    2
    0
    Votes
    2
    Posts
    268
    Views

    J 9 Nov 2021, 18:42

    @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

  • A

    Code flow React / .NET Architecture

    • 18 Aug 2021, 02:39 • andrew.boyd 9 Nov 2021, 16:27
    6
    0
    Votes
    6
    Posts
    578
    Views

    J 9 Nov 2021, 16:27

    @andrew-boyd

    Perfect! Sounds good1

    Josh

  • D

    Should I use the password grant or the Login API when building a mobile application and not using a webview?

    • 4 Nov 2021, 13:49 • dan 4 Nov 2021, 14:07
    2
    0
    Votes
    2
    Posts
    402
    Views

    D 4 Nov 2021, 14:07

    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.

  • H

    SAML Populate Lambda add user group names

    • 29 Oct 2021, 15:07 • hthornton 3 Nov 2021, 00:15
    4
    0
    Votes
    4
    Posts
    424
    Views

    H 3 Nov 2021, 00:15

    @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.

  • M

    Can I run my own database behind my FusionAuth Cloud instance?

    • 2 Nov 2021, 15:37 • matth 2 Nov 2021, 15:37
    1
    1
    Votes
    1
    Posts
    651
    Views

    No one has replied

  • D

    Can you run FusionAuth in kubernetes?

    kubernetes runtimes faq • 22 Apr 2020, 19:37 • dan 1 Nov 2021, 22:13
    7
    2
    Votes
    7
    Posts
    6.8k
    Views

    D 1 Nov 2021, 22:13

    As of q4 2021, FusionAuth officially supports Kubernetes.

    You can read the docs here: https://fusionauth.io/docs/v1/tech/installation-guide/kubernetes/

  • D

    Different base resources for an environment

    theme environments customization • 28 Oct 2021, 13:48 • dan 28 Oct 2021, 14:04
    2
    0
    Votes
    2
    Posts
    4.6k
    Views

    D 28 Oct 2021, 14:04

    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.

  • S

    Cross-platform SSO

    • 25 Oct 2021, 13:53 • stunny 28 Oct 2021, 12:21
    4
    0
    Votes
    4
    Posts
    677
    Views

    M 28 Oct 2021, 12:21

    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.

  • D

    Additional resources for identity

    authentication authorization resources • 27 Oct 2021, 14:54 • dan 27 Oct 2021, 14:54
    2
    0
    Votes
    2
    Posts
    735
    Views

    D 27 Oct 2021, 14:54

    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/

  • P

    how to add dynamic parameters to the confirmation link

    • 30 Sept 2021, 12:21 • povilas_pisklov 25 Oct 2021, 15:06
    2
    0
    Votes
    2
    Posts
    264
    Views

    D 25 Oct 2021, 15:06

    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!

  • H

    Server Availability

    • 19 Oct 2021, 09:35 • hopepost1976 23 Oct 2021, 15:32
    4
    0
    Votes
    4
    Posts
    319
    Views

    D 23 Oct 2021, 15:32

    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.

  • M

    If, say, FusionAuth is hit by a meteor, what are the recovery/continuity plans for those with apps built using FusionAuth

    • 19 Oct 2021, 07:08 • mg 21 Oct 2021, 20:44
    2
    0
    Votes
    2
    Posts
    256
    Views

    J 21 Oct 2021, 20:44

    @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

  • B

    .NET API FusionAuth pipeline setup not authenticating with token

    • 20 Oct 2021, 06:48 • bharnett 21 Oct 2021, 03:34
    2
    0
    Votes
    2
    Posts
    722
    Views

    B 21 Oct 2021, 03:34

    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 ...

  • D

    Copied tenant, email can't be sent?

    email tenants • 20 Oct 2021, 23:08 • dan 20 Oct 2021, 23:09
    2
    0
    Votes
    2
    Posts
    1.0k
    Views

    D 20 Oct 2021, 23:09

    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.

  • A

    If I can decode a JWT, then how are they secure?

    • 20 Oct 2021, 00:09 • akira 20 Oct 2021, 00:15
    2
    0
    Votes
    2
    Posts
    1.2k
    Views

    A 20 Oct 2021, 00:15

    Good question.

    JWTs are either signed or encrypted. For the most part, you will encounter signed JWTs. When a JWT is created by an authorization server, it is signed. The signature essentially functions as a way to say "this payload has been signed using this algorithm. If the payload is different than what was signed, then this JWT is invalid." It is important to not pass sensitive data in a JWT payload for the reason that it can be viewed, but if a malicious actor tries to tamper with the JWT, the signature will no longer match it, and it will be invalid.

  • H

    This topic is deleted!

    • 18 Oct 2021, 08:57 • hopepost1976 18 Oct 2021, 08:57
    1
    0
    Votes
    1
    Posts
    8
    Views

    No one has replied

  • R

    Roles in Connector User Object

    • 8 Oct 2021, 14:14 • rmachorro 17 Oct 2021, 20:28
    2
    0
    Votes
    2
    Posts
    337
    Views

    D 17 Oct 2021, 20:28

    Yes, you can put anything in the user object that is documented here: https://fusionauth.io/docs/v1/tech/connectors/generic-connector/#using-the-generic-connector

    You can return registrations which contain roles as outlined in the sample JSON in the link above.

    Hope that helps!

  • E

    Password complete error

    • 14 Oct 2021, 14:15 • erick 17 Oct 2021, 20:27
    2
    0
    Votes
    2
    Posts
    1.8k
    Views

    D 17 Oct 2021, 20:27

    Is this the same as https://fusionauth.io/community/forum/topic/1317/error-after-updating-the-password ? or different?

    Please share any logfiles you see (you can go to "System" -> "Logs" in the admin UI to view them).

  • S

    SAML with GMAIL accounts

    • 11 Oct 2021, 20:52 • saitulasiram94 15 Oct 2021, 21:15
    2
    0
    Votes
    2
    Posts
    284
    Views

    J 15 Oct 2021, 21:15

    Hi @saitulasiram94!

    FusionAuth can act as both SP and IdP via SAML.

    You may want to review how Gmail integrates via SAML. If Gmail (as Idp) supports an SP or IdP initiated login from FusionAuth, then you should be able to integrate.

    I have included our relevant documentation below.

    https://fusionauth.io/docs/v1/tech/identity-providers/samlv2-idp-initiated/ https://fusionauth.io/docs/v1/tech/identity-providers/samlv2/

    Thanks,
    Josh