Skip to content

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

Draft
chrisknoll wants to merge 1 commit into
webapi-3.0from
cknoll/login-pipeline
Draft

Unify login pipeline to accept an AuthenticatedLogin which the login …#2527
chrisknoll wants to merge 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.
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