nextcloud / nextcloud/user_oidc
Nextcloud + Keycloak + Lowercase
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 181
- Forks
- 60
- Avg merge
- 7h 34m
- Merged PRs (30d)
- 26
Description
Hi,
we've decided to switch our NC authentication from username+password to openid-conect using Keycloak and user_oidc
Everything seemed to work fine but:
- In NC many of our usernames contain uppercase letters
- Keycloak converts all usernames to lowercase
- For users with uppercase usernames user_oidc creates new duplicate, lowercase accounts, instead of logging into the existing accounts
- Renaming users in NC is almost impossible since we have many users with lots of files
Can this behavior be changed?
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how user_oidc matches OIDC usernames and creates Nextcloud accounts, focusing on the case where Keycloak supplies a lowercase username for an existing uppercase account. Review the two existing comments before reproducing the scenario. Done means authentication reuses the existing account without creating a duplicate, with regression coverage for uppercase usernames.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- authentication, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100