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

Disable openid_connect role mapping #43

Merged
merged 1 commit into from
Dec 20, 2024
Merged

Conversation

hyrsky
Copy link
Contributor

@hyrsky hyrsky commented Dec 20, 2024

OpenID connect role mapping feature was fixed in https://www.drupal.org/project/openid_connect/issues/3492759. Some of our projects have lingering configuration for this feature, so the module started to eat user roles. Helfi should not use openid_connect role mapping, since we have custom implementation.

How to test

  • composer require drupal/helfi_tunnistamo:dev-UHF-X-kasko-role-mapping
  • drush updb
  • drush php:eval "print_r(Drupal::configFactory()->get('openid_connect.settings')->get('role_mappings'))", should return empty array.

This feature was fixed in https://www.drupal.org/project/openid_connect/issues/3492759.
Some of our projects have lingering configuration, so the module started to eat user roles.
Helfi should not use openid_connect role mapping, since we have custom implementation.
@hyrsky hyrsky force-pushed the UHF-X-kasko-role-mapping branch from 7acb66a to 27afe21 Compare December 20, 2024 10:20
@hyrsky hyrsky marked this pull request as ready for review December 20, 2024 10:24
@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.17%. Comparing base (18aa1b6) to head (27afe21).
Report is 26 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main      #43      +/-   ##
============================================
+ Coverage     95.89%   96.17%   +0.27%     
- Complexity       56       69      +13     
============================================
  Files             4        5       +1     
  Lines           195      235      +40     
============================================
+ Hits            187      226      +39     
- Misses            8        9       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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.

3 participants