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

    Solved Reverse Proxy - Problem with FusionAuth Server address

    • 28 Jun 2023, 02:16 • mark.robustelli 28 Jun 2023, 02:17
    2
    0
    Votes
    2
    Posts
    939
    Views

    M 28 Jun 2023, 02:17

    Make sure you these 4 headers in your proxy

    Forwarded-Proto: typically this will be https. This ensures any redirects are sent with the appropriate scheme. Forwarded-Host: The original host requested by the client in the Host HTTP request header. Forwarded-For: The originating IP address of the client. Forwarded-Server: The hostname of the proxy server.
  • E

    Unsolved Lost acess to fusionatuh admin dashboard

    • 14 Jun 2023, 17:14 • eric.vigiani 26 Jun 2023, 18:28
    2
    1
    Votes
    2
    Posts
    399
    Views

    D 26 Jun 2023, 18:28

    @eric-vigiani please open a support ticket: https://account.fusionauth.io/account/support/

  • M

    Solved Using Analytics to Track Registrations

    • 23 Jun 2023, 21:41 • mark.robustelli 23 Jun 2023, 21:43
    2
    1
    Votes
    2
    Posts
    1.5k
    Views

    M 23 Jun 2023, 21:43

    One option would be to use Events & Webhooks. Depeneding on what you want to track, you may be interested in the following events:
    -[user.registration.create]
    -[user.registration.complete]
    -[user.registration.verified]

    You could also enable the email verification gate. Then you could call your tracking event on this themed page which would only be fired when the user exits the Email Verification gate as the result of completing their email verification during registration.

    Another option may be to add an UTM code to the redirect_uri used for self-service registration and consume that in your application as the result of a user completing registration.

  • M

    Solved Multi-Region Cloud Setup

    • 23 Jun 2023, 21:31 • mark.robustelli 23 Jun 2023, 21:33
    2
    1
    Votes
    2
    Posts
    1.2k
    Views

    M 23 Jun 2023, 21:33

    It depends on how you setup the database. FusionAuth only needs compute nodes (easy to have in multiple regions) and a postgresql or mysql database (which supports foreign keys, so things like planetscale are out). If you set up an active-active db, it should work. Be sure to load test it and validate.

  • M

    Solved Passwordless API - Can you use the APIs to log in a user?

    • 23 Jun 2023, 21:27 • mark.robustelli 23 Jun 2023, 21:29
    2
    0
    Votes
    2
    Posts
    634
    Views

    M 23 Jun 2023, 21:29

    Yes, if you have API access. Please find the documentation here: Passwordless APIs

    The process would go like this:

    Call Start /api/passwordless/start, capture the code code. Call Login /api/passwordless/login with code Get a JWT and do with it what you normally would

    For a Two Factor setup you would:

    Call Start /api/two-factor/start consume code Call Login /api/two-factor/login with code Get a JWT

    If the end user never needs to log themselves in, you may also consider:

    Assign a random application password to a user. Use that known password to call the Login API Get a JWT! Optionally remove the application password if you want it to be a one time use password.

    This does have the issue of not creating an SSO session for the user, but that may not be a problem. (If someone logs in this way, and then goes to another application which has a login page managed by the 'hosted login pages' of FusionAuth, they won't be automatically logged in.)

  • D

    Unsolved FusionAuth with Cloud SQL Postgres managed database

    • 21 Jun 2023, 18:07 • dan 21 Jun 2023, 18:10
    2
    0
    Votes
    2
    Posts
    353
    Views

    D 21 Jun 2023, 18:10

    This should work, though this is not a common config.

    Here are the suggested startup and liveness probes which worked for a community member:

    I have configured the startup and liveness probes as follows, and they are working well: Startup probe http /api/status periodSeconds: 2s initialDelaySeconds: 0s timeoutSeconds: 1s failureThreshold: 10 Liveness probe http /api/status periodSeconds: 10s initialDelaySeconds: 0s timeoutSeconds: 1s failureThreshold: 3

    More details and discussion on the GH issue: https://github.com/FusionAuth/fusionauth-issues/issues/1980

  • M

    Solved Security Token Signature Key Not Found Exception: IDX10501: Signature validation failed. Unable to match key

    • 21 Jun 2023, 13:51 • mark.robustelli 21 Jun 2023, 14:15
    2
    1
    Votes
    2
    Posts
    2.0k
    Views

    M 21 Jun 2023, 14:15

    You will have to add the key to your FusionAuth instance as in this post.

    In the FusionAuth admin page, got to Settings --> Key Master
    e1482d56-5555-4d96-9c6a-1eeef98f87d2-image.png

    Click "Generate EC key pair"
    90f479ab-302c-4660-8157-03e3a8bfe58e-image.png

    Fill in the information - I used JWT Signature - Asymmetric RSA Key Pari (RS256) for the name
    5b7ddb83-c764-4000-87f8-cc3384d05429-image.png

    Go to to Applications in FusionAuth admin and select edit on your application.

    Select the JWT tab

    Select Enabled
    b6505e8e-1e2b-46c1-bfa6-56d7bfa0a5ba-image.png

    In the JSON web token settings select the key you created in the above step.
    becb03a2-81bf-4f1e-be82-34526e8c410f-image.png

  • I

    Unsolved WebApp and tenenats

    • 28 May 2023, 20:38 • iwky 12 Jun 2023, 02:15
    2
    0
    Votes
    2
    Posts
    344
    Views

    D 12 Jun 2023, 02:15

    @iwky You're spot on. My only suggestion would be to script the application configuration so that it is easy to create and update the FusionAuth configuration as you add new tenants.

  • V

    What happens if I update a user’s email address to an existing one?

    • 8 Jun 2023, 15:49 • vinicius.campitelli 8 Jun 2023, 15:53
    2
    0
    Votes
    2
    Posts
    2.4k
    Views

    V 8 Jun 2023, 15:53

    You'll receive an error in both scenarios.

    If you are using the web interface, you'll get a red message saying "Already exists".

    forum-edit-user-email.png

    And if you are trying to use the Update User API endpoint, you'll receive a HTTP 400 Bad Request error:

    forum-edit-user-email-api.png

  • V

    Do you have a sample integration for iOS and/or Android?

    • 8 Jun 2023, 13:41 • vinicius.campitelli 8 Jun 2023, 13:46
    2
    0
    Votes
    2
    Posts
    1.4k
    Views

    V 8 Jun 2023, 13:46

    Even though we don't have specific SDKs for mobile apps, we do have a Flutter quickstart which uses our Dart client library.

    If you want to develop natively, we recommend using AppAuth, which has iOS and Android SDKs and is maintained by the OpenId Foundation:

    https://github.com/openid/AppAuth-iOS https://github.com/openid/AppAuth-Android

    There's also a FusionAuth Swift Client maintained by the community.

  • D

    Unsolved Passwordless authentication populate JWT token

    • 30 May 2023, 10:22 • devsoep 7 Jun 2023, 17:34
    2
    1
    Votes
    2
    Posts
    1.0k
    Views

    V 7 Jun 2023, 17:34

    Hi there!

    Please make sure that you have selected that Lambda in your Application by navigating to its edit page, going to the JWT tab and choosing it on Access Token populate lambda.

    For instance, my (extremely simple) function looks like:

    function populate(jwt, user, registration) { jwt.customClaim = 'gotcha'; console.debug(JSON.stringify(user)); }

    And I received the following access token with that customClaim at the end:

    235241bf-3086-4565-a424-a14398bdcafd-image.png

  • B

    Unsolved Redirect user back to application after email verification

    • 22 May 2023, 09:04 • beezerk 2 Jun 2023, 23:19
    2
    0
    Votes
    2
    Posts
    735
    Views

    D 2 Jun 2023, 23:19

    @beezerk I'd suggest modifying the theme and adding a link and a meta redirect. I don't think there's any way to specify a redirect.

  • N

    Unsolved Java Client JWT Validate returns incorrect exp/iat time

    • 20 Apr 2023, 11:49 • ndiarmand 2 Jun 2023, 14:16
    7
    1
    Votes
    7
    Posts
    858
    Views

    D 2 Jun 2023, 14:16

    This has been fixed in version 1.46.0, which should be released soon.

    You can track it at the issue above.

    Thanks for reporting, @ndiarmand !

  • S

    Solved SMTP login failed - password=<null>

    • 26 May 2023, 11:13 • spielmitmir2006 31 May 2023, 14:26
    4
    1
    Votes
    4
    Posts
    3.4k
    Views

    D 31 May 2023, 14:26

    Also, I added some documentation to help folks to find this easier: https://github.com/FusionAuth/fusionauth-site/pull/2219

    Should be live in a few minutes.

  • C

    Solved AWS identity provider integration

    • 29 Dec 2021, 17:55 • cnsmith 30 May 2023, 12:34
    11
    0
    Votes
    11
    Posts
    1.2k
    Views

    T 30 May 2023, 12:34

    Since the original post is from two years ago, it's important to consider that the technology landscape and integration options may have evolved since then.

  • D

    Enforcing two factor configuration

    two factor configuration • 3 Aug 2020, 17:51 • dan 25 May 2023, 19:38
    4
    0
    Votes
    4
    Posts
    1.7k
    Views

    D 25 May 2023, 19:38

    @mangeshp16 The original question is over two years old. Since version 1.42, you can enforce MFA at the tenant level (or the application level if you have the enterprise plan). This means that any user who logs in is required to have MFA. If they do not, they are redirected to a page where they can set it up.

    There are other ways to accomplish this. You could build your own MFA page which would call the APIs directly. When a user logs in, you can check to see if they have any twoFactor methods available and if they don't, you can send them to this page.

  • D

    How can I make sure FusionAuth is running when I start it via docker-compose?

    docker docker-compose troubleshooting • 24 Apr 2020, 15:55 • dan 23 May 2023, 04:27
    3
    0
    Votes
    3
    Posts
    4.2k
    Views

    C 23 May 2023, 04:27

    @dan said in How can I make sure FusionAuth is running when I start it via docker-compose?:

    It's not responding at the port 9011, like it should.
    Is there a way to test or ping the FusionAuth App to make sure its up and running other than using docker ps -a?

    Yes, there are several ways to test or ping the FusionAuth App to check if it's up and running without relying on the docker ps -a command. Here are a few alternative methods:

    Curl or wget: You can use the curl or wget command-line tools to send a request to the FusionAuth App's endpoint and check the response. For example, you can run curl http://localhost:9011 or wget http://localhost:9011 to send a GET request to the FusionAuth App running on port 9011. If you receive a valid response, it indicates that the app is up and running.

    Telnet: You can use the telnet command to establish a connection to the FusionAuth App's port and check if it's open and responsive. Run telnet localhost 9011 to attempt a connection to the FusionAuth App on port 9011. If the connection is successful, it means the app is running and accepting connections.

    Browser access: Simply open a web browser and enter the URL http://localhost:9011 to access the FusionAuth App. If the app is running correctly, you should be able to see the login or landing page.

    API client: If the FusionAuth App provides an API, you can use an API client like Postman or cURL to send a request to the API endpoints and verify if you receive the expected responses.

    These methods allow you to test the availability and responsiveness of the FusionAuth App without relying on the docker ps -a command or using Docker-specific tools.

  • N

    Unsolved JWT Validate returns incorrect exp/iat time

    • 19 Apr 2023, 16:54 • ndiarmand 22 May 2023, 10:12
    2
    0
    Votes
    2
    Posts
    752
    Views

    C 22 May 2023, 10:12

    Hello, Time unit difference: The timestamps may be stored or represented in different units. For example, one library might use seconds while the other uses milliseconds. This can result in significantly different values for the expiration date.

    Timezone handling: The libraries may handle timezones differently, which can affect the calculated expiration date. Make sure that the libraries are using the same timezone or that any necessary conversions are being applied consistently.

    Timestamp format: The libraries might use different formats to store or interpret timestamps. Check if the libraries expect timestamps in a specific format and ensure that they are being provided correctly when generating or validating the JWT.

    To resolve the issue, you can try the following steps:

    Review library documentation: Check the documentation of both the .NET Core and Java client libraries for any specific information regarding timestamp handling, timezone considerations, or timestamp formats.

    Verify input values: Ensure that the input values provided to both libraries are consistent and correctly represent the expiration timestamp. Double-check any conversion or formatting steps involved.

    Test with sample data: Create a test case with sample data and compare the outputs of both libraries to identify any discrepancies or patterns.

    Consult library support or community: If the issue persists, consider reaching out to the library maintainers or their respective communities for further assistance. They may be able to provide insights or suggest specific solutions for your scenario.

  • M

    Unsolved Resolving javax.net.ssl.SSLHandshakeException in a local environment with the Java Client and Ktor...

    • 10 May 2023, 12:52 • mart 19 May 2023, 16:43
    2
    0
    Votes
    2
    Posts
    644
    Views

    D 19 May 2023, 16:43

    @mart

    Hmmm. Haven't seen this before.

    https://www.jvt.me/posts/2020/08/16/globally-disable-tls-java-httpsurlconnection/ looks interesting.

    The java client uses https://github.com/inversoft/restify/ under the covers, so maybe there's some setting in that library? The docs are sparse (some might say not there at all) but the code is reviewable.

    Let us know what you find.

  • J

    Unsolved localhost development cookie issue

    • 27 Apr 2023, 15:56 • jacksontrevan 18 May 2023, 00:51
    4
    0
    Votes
    4
    Posts
    1.3k
    Views

    D 18 May 2023, 00:51

    @jacksontrevan Yes, this is unfortunately a limitation of cookies.

    You could work around that by setting up a DNS alias to local.example.com (assuming FusionAuth is running remotely at auth.example.com).

    You can usually set that up by googling for local host in /etc/hosts <platform> which turns up:

    https://www.hostinger.com/tutorials/how-to-edit-hosts-file-macos https://www.manageengine.com/network-monitoring/how-to/how-to-add-static-entry.html