Allow to turn off roles mapping

Created on 21 April 2023, over 1 year ago

Problem/Motivation

The EXPERIMENTAL roles mapping seems to be always on, with no possibility to switch it off. It works by reading the claim "groups", if the claim exists it will REMOVE all groups from the user profiles not listed in that claim. This may break sites where the IdP provides tokens with that claim populated but containing info unrelated with Drupal roles.

Remember that most developers don't control the content of the tokens provided by the IdP. If you can't turn this feature off and it breaks your site, you basically can't upgrade to 3.x meaning you can't upgrade to D10.

Relates issue: Add groups claim Needs work
If that feature is implemented the above mentioned problem would disappear because you can at least point to another claim (even a non-existent one to avoid mapping altogether). However I think a general on/off switch would still be a good idea.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

Feature request
Status

Active

Version

3.0

Component

Code

Created by

🇬🇧United Kingdom pbattino Reading

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024