Skip to content

django/models: Map keycloak groups to django ones in OIDCUser model

Add support for mapping Keycloak groups to Django ones in OIDCUser model by overriding the groups member of Django base User model.

It enables to manipulate user groups declared in Keycloak using Django standard User model API.

Finally found a solution to map Keycloak groups to Django ones. It will enable to take advantage of user group membership in Software Heritage web services based on Django.


Migrated from D7867 (view on Phabricator)

Merge request reports