Possible to Find Which IdP Within hook_saml_sp_drupal_login_user_attributes_alter?

Created on 10 September 2023, 10 months ago
Updated 12 September 2023, 10 months ago

Problem/Motivation

I'm writing a hook,
mymodule_saml_sp_drupal_login_user_attributes_alter()
to pull various attributes (in particular groups) into custom user fields. I anticipate having to connect to dozens of organisations IdPs mostly Azure but at least 1 Okta based system. These organisations will have unique Directory group names which we plan to index on an IdP-by-IdP basis so we can map to Drupal Domains, Roles and Drupal Groups.

There doesn't seem to be a way to add an "Identity Provider" attribute to Okta claims so, I need another method to determine what IdP a user "belongs" to.

Proposed resolution

Some way the obtain the EntityID of IdP machine name, for the user, preferably within the mymodule_saml_sp_drupal_login_user_attributes_alter() function.

πŸ’¬ Support request
Status

Closed: works as designed

Version

4.2

Component

Code

Created by

πŸ‡¦πŸ‡ΊAustralia BrettSh

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

Comments & Activities

Production build 0.69.0 2024