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]: Server throwing after account removed #77

Open
Virus288 opened this issue Dec 3, 2024 · 0 comments
Open

[Bug]: Server throwing after account removed #77

Virus288 opened this issue Dec 3, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Virus288
Copy link
Owner

Virus288 commented Dec 3, 2024

Time when occurred

03.12.2024

Reproducibility

100%

Does this problem occurs while you are logged in ?

Yes

Client

Backend client - autorizations-backend-client on commit d5b94268be668eb1d5525788671325a997ee64c6 and frontend client - 2d29349a6d96ce0fb5851d227a1f8ed80bce3dc5.

Steps to reproduce

  • Register account
  • Log in
  • Remove account
  • Try to log in

What did you expect to happened ?

I've expected backend to allow me to log in

What actually happened ?

Authorizations server has intent cached in redis, which I wasn't able to remove. This intent is also cached in cookies in browser. Because of this intent, server thinks that user is logged in, but redirecting him to backend-client ( which validates session ) shows error ( because use is not logged in ).

Simply removing intent after removing account will fix it, otherwise, do not let user remove account in 300 seconds after logging in

@Virus288 Virus288 added the bug Something isn't working label Dec 3, 2024
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
None yet
Development

No branches or pull requests

1 participant