Group/Role mapping broken when not using user info endpoint

Created on 20 March 2024, 3 months ago

Problem/Motivation

The issue https://www.drupal.org/project/openid_connect_windows_aad/issues/3345637 πŸ› Roles unassigned due to array to string conversion Active created a problem for configurations which are using mapping of groups to roles, but are not using an API endpoint to get group information; eg: groups are being returned via a claim.

Steps to reproduce

Use a configuration with 'Map user's AD groups to Drupal roles' enabled and 'Alternate or no user endpoint' enabled. The logic to map groups to roles does not fire.

Cause /resolution

This MR changes everything to look at 'aad_groups': https://git.drupalcode.org/project/openid_connect_windows_aad/-/commit/f...

Proposed solution is to still check for the presence of 'groups' which will still be processed correctly by the code. MR coming...

πŸ› Bug report
Status

Needs review

Version

2.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom JKingsnorth

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024