🇦🇺Australia @lykyd

Account created on 12 January 2012, almost 13 years ago
#

Recent comments

🇦🇺Australia lykyd

Hello,

To be able to map your custom fields to drupal fields you will have to create custom claims.
Create a custom module and in its .module file (ex : yourmodule.module) you have to implement the g2f_account_openid_connect_claims_alter

 * Implements hook_openid_connect_userinfo_claim_alter()
 */
function yourmodule_openid_connect_claims_alter(array &$claims) {
  // Add custom claims to OpenID Connect administration
  $claims['custom_claim'] = [
    'scope' => 'profile',
    'title' => 'Custom Claim',
    'type' => 'string',
    'description' => 'A custom claim from provider',
  ];
}

Then you should see "Custom Claim" in the "User claims mapping" form.

PS : the other hook you might need is the hook_openid_connect_userinfo_claim_alter that will help you to rework the values of the custom fields to match the expected values of your Drupal fields.

🇦🇺Australia lykyd

lykyd → created an issue.

🇦🇺Australia lykyd

I wish this feature wasn't abandoned. I'm having trouble with low level of admin users that can change the settings.
Plus I'm using an edit form with tabs, and the theme settings section appears in every tabs.

Production build 0.71.5 2024