pulsejet / nextcloud-oidc-login

Nextcloud login via a single OpenID Connect 1.0 provider
https://apps.nextcloud.com/apps/oidc_login
GNU Affero General Public License v3.0
219 stars 59 forks source link

Keycloak Attribute ObjectGUI in lowercase #236

Open davtheultimate opened 1 year ago

davtheultimate commented 1 year ago

Hi,

Maybe, I am solo to have this problem but keycloak (v18) send an objectGUID in lowercase so i have two account in nextcloud (v27) for one user. one with GUID in lowercase from keycloak and other in uppercase from AD. I put into this file LoginService.php line 104

   ` // Get UID
    $uid = strtoupper($this->attr->id($profile));`

Other persons had this problem or it's a misconfiguration ?

KodoGit commented 8 months ago

Same story. It is very difficult to setup case manipulation in Keyclock. And we have to manualy edit LoginService.php after every update.

KodoGit commented 1 month ago

It is still the issue... N28+ v3.1.1

_data/custom_apps/oidc_login/lib/Service/LoginService.php line 91

        // Get UID
        $uid = $this->attr->id($profile);
        $uid = strtoupper($uid);
KodoGit commented 1 month ago

It is still the issue...

NC forces uppercase UUID from LDAP. Keycloak sends as it is (lowercase)

N28+ v3.1.1

_data/custom_apps/oidc_login/lib/Service/LoginService.php line 91

        // Get UID
        $uid = $this->attr->id($profile);
        $uid = strtoupper($uid);