cosmocode / dokuwiki-plugin-oauth

Generic oAuth1 and oAuth2 plugin for DokuWiki
http://www.dokuwiki.org/plugin:oauth
30 stars 78 forks source link

Groups not being updated with KeyCloak #107

Closed vrelk closed 3 years ago

vrelk commented 3 years ago

I have noticed that a users groups are not updated when they sign in, and only when it is creating a new user.

If I have Keycloak saying that I should be a member of group1 and group2, then sign in to dokuwiki where my user doesn't exist, I get a new user that belongs to group1 and group2. If I now sign out, and change my groups in keycloak so I belong to group1 and group3, then sign back into dokuwiki, I still belong to group1 and group2 (this includes signing out of keycloak as well). If I delete my user in dokuwiki and sign in again, I will now be a member of group1 and group3.

I am trying to muddle my way through the code to try and figure out which function handles logins and why it isn't syncing. If anyone can point me in the right direction, I will post a fix for it. I will keep looking and messing with it when I have time, but I will post the fix here if someone else doesn't come up with it first.

vrelk commented 3 years ago

Scratch that. This falls under the "I'm an idiot category" for not re-adding myself to the appropriate groups after redoing them in Keycloak.