[FEATURE]: Ensure correct handling of Password login vs oidc login #171

Closed
opened 2025-09-26 13:40:23 +02:00 by simon · 0 comments
Owner

Description

I want to make sure, that password login and oidc login work as expected.
additional to the users ID, for authentication we also have an email id or an oidc id, respective of the authentication method used.

If a login via OIDC matches an oidc_id

  • update user.mail, if it differs
    • should also trigger member.mail change

If a login via OIDC doesn't match an oidc_id

  • if a user with the same user.mail exists, ask for password and set oidc_id for user
  • if no matching mail exists, create a new user from oidc-details

Acceptance criteria

  • a test ensures that if logged in via password, the users identifier is the user.email
  • ensure (and test!) the described oidc flows work

External or internal Dependencies

## Description I want to make sure, that password login and oidc login work as expected. additional to the users ID, for authentication we also have an email id or an oidc id, respective of the authentication method used. If a login via OIDC matches an oidc_id - update user.mail, if it differs - should also trigger member.mail change If a login via OIDC doesn't match an oidc_id - if a user with the same user.mail exists, ask for password and set oidc_id for user - if no matching mail exists, create a new user from oidc-details ## Acceptance criteria - [x] a test ensures that if logged in via password, the users identifier is the user.email - [x] ensure (and test!) the described oidc flows work ## External or internal Dependencies <!-- List any dependencies --->
simon added this to the Accounts & Logins milestone 2025-09-26 13:40:23 +02:00
simon added the
M
label 2025-09-26 13:40:23 +02:00
simon added this to the Sprint 6 - 11.09 - 02.10. project 2025-09-26 13:40:24 +02:00
simon removed this from the Sprint 6 - 11.09 - 02.10. project 2025-10-02 12:38:57 +02:00
moritz added this to the Sprint 8 - 23.10 - 20.11 project 2025-10-23 13:21:03 +02:00
moritz added
S
and removed
M
labels 2025-10-23 13:21:12 +02:00
moritz self-assigned this 2025-11-05 18:26:38 +01:00
moritz added
M
and removed
S
labels 2025-11-05 18:26:47 +01:00
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: local-it/mitgliederverwaltung#171
No description provided.