Fix LDAP/OAuth2 users getting role reset on login #55
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
qwc-open/asiakirjat!55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "fix/ldap-oauth2-role-reset"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes #54
Changes
internal/auth/ldap.go: ModifiedprovisionUser()to only update email, not roleinternal/auth/oauth2.go: Same change for OAuth2 authenticatorTest plan
go test -mod=vendor -count=1 ./internal/auth/...- all tests pass🤖 Generated with Claude Code