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.
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.