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

      Unsolved This topic is deleted!

      • • tashi
      1
      0
      Votes
      1
      Posts
      1
      Views

      No one has replied

    • danD

      Solved Having trouble using Gmail SMTP for email sending

      • • dan
      3
      0
      Votes
      3
      Posts
      765
      Views

      P

      @dan said in Having trouble using Gmail SMTP for email sending:

      Found a way to solve it.

      You really need to use 16-char app passwords with Google SMTP, as it is suggested here https://support.google.com/accounts/answer/185833/tunnel rush

      It works fine then.

      🤠 😊

    • danD

      Unsolved FA controls on traffic

      • • dan
      4
      0
      Votes
      4
      Posts
      508
      Views

      danD

      @srikanth-bussa Great.

      If you need to customize the JWT, I'd suggest looking at the populate lambda and lambda HTTP connect as well.

    • K

      Unsolved How to make a saml request with php / fusionauth?

      • • ken
      2
      0
      Votes
      2
      Posts
      569
      Views

      danD

      Hiya,

      Yes, you complete a login after the user has logged in at the SAML provider. That's implied, but maybe we should make it a bit clearer.

      From https://fusionauth.io/docs/v1/tech/apis/identity-providers/samlv2#complete-a-saml-v2-login

      This API allows you to complete a SAML v2 login after the user has authenticated with a SAML v2 identity provider. If you are using the FusionAuth login UI with the SAML v2 button you will not utilize this API directly.

      The idea is:

      you call start SAML login (the FusionAuth API) you direct the user to the IDP you get the SAML response you pass the SAML response to the complete API call (again, FusionAuth API)

      Why not just integrate SAML directly into your application? It's an instance of the identity broker pattern, and having FusionAuth in the middle can allow for a standard interface across SAML and other remote IdP providers.

      How you handle steps 2 and 3 is not documented for two reasons.

      It might vary widely, depending on the SAML IdP and your configuration. It is expected that as someone who is using the start/complete API and not the FusionAuth hosted login pages, you are familiar enough with SAML to take care of them.

      Hope this helps!

    • T

      Unsolved Appropriate refresh token setting for rolling window?

      • • theogravity-sb
      5
      1
      Votes
      5
      Posts
      728
      Views

      T

      @dan Thanks, this is the use-case I was expecting.

    • danD

      Unsolved Using ngrok and I get an error message when viewing the admin screen

      • • dan
      2
      0
      Votes
      2
      Posts
      1.2k
      Views

      danD

      The easiest way is to add the required header to the ngrok connection.

      Here's how you can do it:

      ./ngrok http --request-header-add 'X-Forwarded-Port:443' 9011

      That should fix the issue.

    • P

      Unsolved Searching user with multiple application

      • • prawee
      7
      0
      Votes
      7
      Posts
      2.4k
      Views

      P

      @joshua okay thank you for reply.

    • D

      Solved UpdatinG User with JSON-PATCH method

      • • duke
      5
      0
      Votes
      5
      Posts
      914
      Views

      A

      @duke said in UpdatinG User with JSON-PATCH method:

      @dan It was abit confusing because looking at the original body of the group, there was no parameter/ field called roleIds but it was used in the request.

      To update the User we used this.

      // To remove language let body = vec![Testing { op: "remove".to_string(), path: "/user/preferredLanguages/0".to_string() }];

      thanks my issue has been fixed.

    • K

      Unsolved How to auto get the first/last name of user on sso external idp samlv2 login? and redirect to our site login handler?

      • • ken
      2
      0
      Votes
      2
      Posts
      345
      Views

      danD

      @ken Did you get this resolved?

    • K

      Unsolved How to get whether user is using sso?

      • • ken
      2
      0
      Votes
      2
      Posts
      384
      Views

      danD

      @ken Hiya,

      I don't think this is currently available via API. The closest issue I could find was this: https://github.com/FusionAuth/fusionauth-issues/issues/1515

      I can't commit to a timeline for this feature being built out, however.

      Please upvote that and/or add a comment illustrating your use case.

    • 2

      Unsolved Forgot password API

      • • 2kayush.125
      2
      0
      Votes
      2
      Posts
      385
      Views

      danD

      @2kayush-125 It's in the tenant settings.

      The UI is documented here: https://fusionauth.io/docs/v1/tech/core-concepts/tenants#advanced (look for "Change Password")

      The API is documented here: https://fusionauth.io/docs/v1/tech/apis/tenants (look for tenant.externalIdentifierConfiguration.changePasswordIdTimeToLiveInSeconds)

      Hope this helps.

      Thanks for using FusionAuth!

    • K

      Unsolved How to show "Login with SAML" button on our own site for fusionauth application that has sso?

      • • ken
      2
      0
      Votes
      2
      Posts
      382
      Views

      danD

      @ken

      Hiya,

      The information about whether an application has an IdP configured for it is stored on the identity provider object, not on the application.

      So the easiest way to answer your question is to retrieve all the identity providers (or one, if you have a target), then filter through the JSON looking for your application id.

      https://fusionauth.io/docs/v1/tech/apis/identity-providers/#retrieve-all-identity-providers shows how to list all Identity Providers.

      If you look at the results, you'll see a field similar to:

      "applicationConfiguration": { "1c212e59-0d0e-6b1a-ad48-f4f92793be32": { "createRegistration": true, "enabled": true } },

      for each of the identity providers.

      The applicationConfiguration has keys, each of which is an application Id.

      Does that help?

    • P

      Unsolved Maintenance Mode DB creation fails without message with PostgreSQL 15 on Windows

      • • pclark
      2
      0
      Votes
      2
      Posts
      2.3k
      Views

      danD

      @pclark

      Thanks for sharing this. I filed an issue based on your helpful post.

    • K

      Unsolved Linking strategy not available anymore?

      • • ken
      2
      0
      Votes
      2
      Posts
      378
      Views

      danD

      @ken

      Hiya,

      Sorry, I'm a bit confused.

      What version of FusionAuth are you running? Which type of identity provider are you setting up?

      I just logged into our sandbox instance: sandbox.fusionauth.io and was able to add an identity provider and edit it and saw the "Linking Strategy" both times.

      Thanks,
      Dan

    • Y

      Unsolved How is the fusionauth.sso cookie encoded in version 1.36?

      • • yb98
      2
      0
      Votes
      2
      Posts
      1.9k
      Views

      danD

      @yb98

      Heya, this isn't something we document, so it is considered an implementation detail that could change at any time.

      You could file an issue asking this to be codified and documented, but I'm not sure we'd do that. It's more likely we'd do something like this: https://github.com/FusionAuth/fusionauth-issues/issues/1515

      Thanks for using FusionAuth!

    • D

      Why can't I disable X-Frame-Options or use CSP instead?

      • • duane
      5
      0
      Votes
      5
      Posts
      2.4k
      Views

      K

      You cannot display a lot of websites inside an iFrame. Reason being that they send an "X-Frame-Options: SAMEORIGIN" response header. This option prevents the browser from displaying iFrames that are not hosted on the same domain as the parent page.

      I faced the same error when displaying YouTube links. For example: https://www.youtube.com/watch?v=8WkuChVeL0s

      I replaced watch?v= with embed/ so the valid link will be: https://www.youtube.com/embed/8WkuChVeL0s

      It works well.

      Try to apply the same rule on your case.

      SAMEORIGIN

      The page can only be displayed in a frame on the same origin as the page itself. The spec leaves it up to browser vendors to decide whether this option applies to the top level, the parent, or the whole chain, although it is argued that the option is not very useful unless all ancestors are also in the same origin.

    • P

      Solved Set up SSL for Netty

      • • pclark
      4
      0
      Votes
      4
      Posts
      1.8k
      Views

      P

      @voidmain Thank you!

    • E

      Unsolved Authorization Code Flow: from Auth0 to FusionAuth

      • • etienne.caldo
      2
      0
      Votes
      2
      Posts
      338
      Views

      J

      @etienne-caldo Hey Etienne, this is a good question, there is some context that goes behind it and usually we would want to have a discovery coffee session to elaborate on the matter. Let me know if this is of interest to you.

    • danD

      Unsolved Can I revoke an access token in FusionAuth?

      • • dan
      2
      0
      Votes
      2
      Posts
      862
      Views

      danD

      No.

      You can't explicitly revoke an access token in FusionAuth. We don't support RFC 7009: https://www.rfc-editor.org/rfc/rfc7009.html and based on the number of upvotes for this, I don't know if the community wants us to: https://github.com/FusionAuth/fusionauth-issues/issues/201 But if you do, feel free to upvote that issue.

      If you want to have an access token become invalid, you have to manage it yourself. That is what is outlined in this article.

      The process is basically:

      set up webhooks to fire to all the resource servers when a refresh token is invalidated (when the user logs out) listen for that event, and when it occurs, record the user with the invalid token in the resource server (in redis, db, etc) next time an access token is presented, verify that it is not for a user who has logged out

      If you want to handle the case where a user logs out, then logs back in quickly, then the time based logic in the Webhooks section here: https://fusionauth.io/learn/expert-advice/tokens/revoking-jwts needs to be implemented.

    • S

      Unsolved JWT public keys are empty

      • • stacey
      3
      1
      Votes
      3
      Posts
      785
      Views

      S

      Thanks for the update!