mirror of
https://github.com/requarks/wiki.git
synced 2026-03-02 22:06:55 -05:00
User locked out if the Keycloak realm changed #1349
Labels
No labels
BETA
BETA
accessibility
backlog
bug
can't replicate
contrib-easy
contrib-hard
contrib-medium
deferred
documentation
duplicate
duplicate
editors
enhancement
invalid
localization
migrate
ui
under review
v3
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/wiki-requarks#1349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @patrickdung on GitHub (Apr 11, 2020).
Originally assigned to: @NGPixel on GitHub.
Describe the bug
Suppose the Keycloak is configured in Wikijs with realm called master. The setting is openid-connect.
This is a mis-configuration. Now we the Keycloak create a new realm for this and called the realm 'external'.
Currently in Wikijs. it does not allow users to be removed if they have created content. So I can't delete the user and relink it with the new realm.
The Keycloak connection setting in Wikijs is updated to the new realm. But the existing users could not login. It is because the uid/providerId of the users are different in the master and the external realm.
Host Info (please complete the following information):*
Wiki.js 2.2.51
Keycloak 9.0.2
Additional context
As a workaround, I update the providerId of the user in the database of Wiki.js. Now the user can login to the new realm.
Please provide a suitable way for this problem, like:
Allow relinking user to a new relam with different providerId or
Allow manually edit providerId in the admin web console or
Allow multiple users with same email address but different providerId to exist in the Wiki.js system or
any other suitable ways