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

Rewrite authentication flow #2374

Open
wants to merge 15 commits into
base: main
Choose a base branch
from

Conversation

kradalby
Copy link
Collaborator

@kradalby kradalby commented Jan 23, 2025

This PR takes a look at the authentication flow with fresh eyes, and it more or less deletes all of it and simplifies it.
I think we made a lot of "guesses" for what needs to happen in the early they so there was a lot of unnecessary conditional paths and code that was really hard to follow.

This code rearranges it so it is a relatively simple "directed graph" so it should be easier to follow.

The motivation for this was inconsistent handling and bugs causing #2327 and #1310, as well as different behaviour logging in and out with different auth methods.

Fixes #2327
Fixes #1310

Probably also:
Fixes #1522

@kradalby kradalby changed the title Redo NodeKey and OldNodeKey Rewrite authentication Jan 24, 2025
@kradalby kradalby force-pushed the kradalby/no-more-any-key branch 3 times, most recently from 5ffe036 to dd7929b Compare January 26, 2025 14:38
@kradalby kradalby force-pushed the kradalby/no-more-any-key branch from aee34a8 to b12df05 Compare January 26, 2025 16:55
@kradalby kradalby force-pushed the kradalby/no-more-any-key branch from b12df05 to cbd1c00 Compare January 26, 2025 22:56
Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
Signed-off-by: Kristoffer Dalby <[email protected]>
@kradalby kradalby force-pushed the kradalby/no-more-any-key branch from 375ddc2 to 62f8fd2 Compare January 27, 2025 10:03
@kradalby kradalby changed the title Rewrite authentication Rewrite authentication flow Jan 27, 2025
@kradalby kradalby marked this pull request as ready for review January 27, 2025 10:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Change Account Preauth keys for different users Bug in user switching during OIDC authentication
1 participant