Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: basic user, tags and role sync to keycloak #54

Closed
wants to merge 2 commits into from
Closed

Conversation

nanu-c
Copy link
Collaborator

@nanu-c nanu-c commented Feb 1, 2024

This pr adds a directus extension that syncs users, tags + roles to keycloak, when they are changed.
For this to work I had to change the permissions for the directus keycloak client so it needs a reimport of the keycloak config.
Basically the directus_user get's a new field keycloak_uuid as unique identifier to track also changes in the e-mail address.
collectivo_tags and directus_role are created as groups in the form of Has a dog -> has-a-dog. A group that doesn't exists is created.

Missing

  • export the directus flow and add it to this pr
  • add the keycloak_uuid to the directus user in a migration
  • add keycloak_uuid on user creation -> difficult, i can't modify a item that isn't created yet
  • support batch changes
    image

Nice to have:

  • set new password from admin interface that is synced to keycloak

closes #53

@nanu-c nanu-c requested a review from jofmi February 2, 2024 18:42
@nanu-c
Copy link
Collaborator Author

nanu-c commented Apr 15, 2024

Hey should finish this or close it?

@jofmi jofmi closed this Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

keycloak syncronization
2 participants