OIDC logging into an existing account doesn't work #1942

Closed
opened 2026-07-10 21:07:54 +00:00 by burgundia · 0 comments
Contributor

When attempting to log into an account created outside of OIDC using OIDC, the request will be rejected, as the mechanism will attempt to create a new user using the preferred_username_claim that is already in use.

continuwuity-testing  |   2026-07-10T20:44:42.986805Z ERROR conduwuit_service::oidc: Preferred username claim is not a valid localpart: UserInUse: Username is not available.
continuwuity-testing  |     at src/service/oidc/mod.rs:334 on conduwuit:worker ThreadId(4)
continuwuity-testing  |     in conduwuit_service::oidc::complete_session with supplied_user_id=None subject="07beae6d8152ce6f519d505ac5d438caab98d320418c12ac3f55b941fb5dd49d"
continuwuity-testing  |     in tower_sessions::service::call
When attempting to log into an account created outside of OIDC using OIDC, the request will be rejected, as the mechanism will attempt to create a new user using the preferred_username_claim that is already in use. ``` continuwuity-testing | 2026-07-10T20:44:42.986805Z ERROR conduwuit_service::oidc: Preferred username claim is not a valid localpart: UserInUse: Username is not available. continuwuity-testing | at src/service/oidc/mod.rs:334 on conduwuit:worker ThreadId(4) continuwuity-testing | in conduwuit_service::oidc::complete_session with supplied_user_id=None subject="07beae6d8152ce6f519d505ac5d438caab98d320418c12ac3f55b941fb5dd49d" continuwuity-testing | in tower_sessions::service::call ```
ginger added this to the 26.6.1 milestone 2026-07-11 01:24:03 +00:00
Sign in to join this conversation.
No milestone
No project
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
continuwuation/continuwuity#1942
No description provided.