Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Cannot log in anymore after upgrade to v1.50.x #2736

Open
alfa-alex opened this issue May 3, 2024 · 8 comments
Open

[Bug]: Cannot log in anymore after upgrade to v1.50.x #2736

alfa-alex opened this issue May 3, 2024 · 8 comments
Assignees
Labels
bug Something isn't working

Comments

@alfa-alex
Copy link

alfa-alex commented May 3, 2024

What happened?

After upgrading to v1.50.x (tried with both v1.50.0 and v1.50.1), I cannot log in to FusionAuth anymore. After login, I'm getting presented the login screen again (and no errors shown).

More specifically, when I log in via the login UI (no SSO), the POST request to the authorize endpoint redirects me to the consent endpoint, which redirects me to the authorize endpoint that returns a status 200 and the login form again.

Logins via SSO fail in a similar manner (i.e., I end up in the login screen without any error being shown).

The logs also don't contain any related / helpful message.

Versions up to v1.49.2 worked without problems.

I have a test environment that simply boots a FusionAuth instance against a postgres (all in docker) initiated from a simple kickstart.json and even there I can reproduce the problem. I wonder why no one else seems to have run into this yet. 🤔

Workaround

This is due to setting the tenant level SSO session timeout too low. If minimizing this value, you must set it high enough to allow users to complete a login workflow. This is application and context dependent. For example, submitting a required registration field or verifying an email address take longer than a typical username and password login.

Do not set this to 0, as that will definitely trigger this bug.

Version

1.50.1

Affects Versions

>= 1.50.0

@andrewpai
Copy link

Hi @alfa-alex,
I'm sorry you're running into this issue. Would you be willing to share your kickstart file with us so we can try to reproduce what you're seeing? If so, you can either email me at andy at fusionaut.io, join our community Slack and DM it to @Andy Pai, or put it in a GitHub gist and share it with @andrewpai. Please redact any sensitive information like passwords or password hashes, API keys, PII, and anything else you deem private.

Thanks,
Andy

@alfa-alex alfa-alex changed the title [Bug]: Cannot login anymore after upgrade to v1.50.x [Bug]: Cannot log in anymore after upgrade to v1.50.x May 10, 2024
@PostImpatica
Copy link

PostImpatica commented May 21, 2024

I have the same issue. I have debug turned on for the application but nothing shows in the logs. I also upgraded to 1.50.1 and now the login just recycles with no errors

@mooreds
Copy link
Collaborator

mooreds commented May 21, 2024

@PostImpatica can you please provide as much detail as you can to help us debug this?

  • what version you were moving from
  • what db you use
  • which application you are trying to log in to
  • how you are hosting
  • anything else you can think of

And as Andy added, if you can share a kickstart file on how you set up FusionAuth, that's super helpful.

@PostImpatica
Copy link

PostImpatica commented May 21, 2024 via email

@mooreds
Copy link
Collaborator

mooreds commented May 22, 2024

Hey folks, one question. What is the value of the SSO session length (under Tenants -> OAuth)?

@PostImpatica
Copy link

PostImpatica commented May 22, 2024 via email

mooreds added a commit to FusionAuth/fusionauth-site that referenced this issue May 22, 2024
* document that you should not set this parameter to zero

FusionAuth/fusionauth-issues#2736

* more nuance, please

* updating with correct examples
@mooreds
Copy link
Collaborator

mooreds commented May 22, 2024

Thanks @PostImpatica . We've just merged a fix warning folks about setting session timeout too low: FusionAuth/fusionauth-site#3083

We're discussing other ways to mitigate this as well.

@spwitt spwitt self-assigned this May 23, 2024
@spwitt spwitt added the bug Something isn't working label May 23, 2024
@spwitt spwitt added this to In progress in FusionAuth Issues May 23, 2024
@alfa-alex
Copy link
Author

Hey folks, one question. What is the value of the SSO session length (under Tenants -> OAuth)?

Mine is 3600 seconds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
FusionAuth Issues
  
In progress
Development

No branches or pull requests

5 participants