AzureAD OAuth: Add optional strict parsing of role_attribute_path for Azure AD (#42157)

* AzureAD OAuth: Add optional strict parsing of role_attribute_path for Azure AD

Fix casting issues

modify unit tests

Unit test fix

Add proper test args

* Return empty role when using strict attribute mode

* Raise error on empty role

* Fix UT for latest case
This commit is contained in:
sivamu
2022-03-18 10:34:16 +00:00
committed by GitHub
parent ea7d5a6185
commit 6c468daabc
6 changed files with 43 additions and 13 deletions
+1
View File
@@ -109,6 +109,7 @@ auth_url = https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/authorize
token_url = https://login.microsoftonline.com/TENANT_ID/oauth2/v2.0/token
allowed_domains =
allowed_groups =
role_attribute_strict = false
```
You can also use these environment variables to configure **client_id** and **client_secret**: