Skip to content

Unify login pipeline to accept an AuthenticatedLogin which the login …#2527

Merged
chrisknoll merged 1 commit into
webapi-3.0from
cknoll/login-pipeline
Jun 29, 2026
Merged

Unify login pipeline to accept an AuthenticatedLogin which the login …#2527
chrisknoll merged 1 commit into
webapi-3.0from
cknoll/login-pipeline

Conversation

@chrisknoll

Copy link
Copy Markdown
Collaborator

This PR unifies the login flow (from authentication to user session + JWT). An un-implemented part of this is how to manage group synchronization. The OIDC attempted to do this, but there is infrastructure in place to manage Group->Role associations, however, it is tightly coupled to LDAP and UserImportJobs. We can decide if we want to maintain the UserImport functioniality, but my prefernce for 3.0 would be to synchronize roles based on user login (at login time, certain auth providers will present claims, so we can do IdP claim->webapi roles mapping during the login process).

I attempted to handle group synchronziaton, but then learned about how the RoleGroupEntity depends on LDAP, UserImportJobs, and I decided to put this into a phase 2 (either we can extend this PR to cover group sync or we can leave this PR to not do group synchronization and juse leave a place-holder for furter expansion to handle group mapping).

…flow can use to get the login, name and groups.

Could not implement a group/claims mapper to WebAPI Roles due to the tight coupling with UserImportJobs and LDAP.
Phase2 can incorporate a method of group mapping.
@chrisknoll

Copy link
Copy Markdown
Collaborator Author

I'm going to commit these changes as it unifies the login pipeline, and then my next PR will involve implementing role/claim/nt groups -> webapi Roles functionality.

@chrisknoll chrisknoll marked this pull request as ready for review June 29, 2026 15:04
@chrisknoll chrisknoll merged commit c151620 into webapi-3.0 Jun 29, 2026
6 checks passed
@chrisknoll chrisknoll deleted the cknoll/login-pipeline branch June 29, 2026 15:04
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.

1 participant