nextcloud / nextcloud/user_oidc

Nextcloud + Keycloak + Lowercase

Open
#656 2 comments 0 reactions 0 assignees View on GitHub

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:

  1. In NC many of our usernames contain uppercase letters
  2. Keycloak converts all usernames to lowercase
  3. For users with uppercase usernames user_oidc creates new duplicate, lowercase accounts, instead of logging into the existing accounts
  4. Renaming users in NC is almost impossible since we have many users with lots of files

Can this behavior be changed?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.