HomeSoftware Heritage

auth: Map Keycloak user permissions to Django ones

This commit no longer exists in the repository. It may have been part of a branch which was deleted.

Description

auth: Map Keycloak user permissions to Django ones

Keycloak user permissions are named Roles in Keycloak semantics.

Extract them from each decoded access token and override methods from
django.contrib.auth.models.PermissionsMixin in order to manipulate them
as Django user permissions.

Closes T2247

Commit No Longer Exists

This commit no longer exists in the repository.