From f4e59d001b39ffba62cdf5cf915ac3170c821f78 Mon Sep 17 00:00:00 2001 From: tuutti Date: Wed, 14 Feb 2024 09:29:49 +0200 Subject: [PATCH] UHF-9585: Map AD roles --- public/sites/default/all.settings.php | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/public/sites/default/all.settings.php b/public/sites/default/all.settings.php index 3589a6a8..72eb307b 100644 --- a/public/sites/default/all.settings.php +++ b/public/sites/default/all.settings.php @@ -25,6 +25,20 @@ // Sentry DSN for React. $config['react_search.settings']['sentry_dsn_react'] = getenv('SENTRY_DSN_REACT'); +$config['openid_connect.client.tunnistamo']['settings']['ad_roles'] = [ + [ + 'ad_role' => 'Drupal_Helfi_kaupunkitaso_paakayttajat', + 'roles' => ['admin'], + ], + [ + 'ad_role' => 'Drupal_Helfi_Rekry_sisallontuottajat_laaja', + 'roles' => ['editor'], + ], + [ + 'ad_role' => 'Drupal_Helfi_Rekry_sisallontuottajat_suppea', + 'roles' => ['content_producer'], + ], +]; $additionalEnvVars = [ 'AZURE_BLOB_STORAGE_SAS_TOKEN|BLOBSTORAGE_SAS_TOKEN',