From 420a3aaa2fc5cd94f8ef1638ba387f9f36d6d131 Mon Sep 17 00:00:00 2001 From: zhihaoguo Date: Wed, 9 Mar 2022 17:35:21 +0800 Subject: [PATCH] Rename from allowed-groups to allowed-group-names (#216) --- .../aad-resource-server-by-filter/README.md | 4 ++-- .../src/main/resources/application.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/README.md b/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/README.md index 9fb3a6d77..bd715a230 100644 --- a/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/README.md +++ b/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/README.md @@ -103,7 +103,7 @@ spring: redirect-uri-template: http://localhost:8080/ # groups that you created in your Azure AD tenant user-group: - allowed-groups: group1,group2 + allowed-group-names: group1,group2 # Optional, the default value is # environment: global ``` @@ -121,7 +121,7 @@ client-id: xxxxxx-your-client-secret-xxxxxx 3. List all the AAD groups `ActiveDirectoryGroups` that you want to have a Spring Security role object mapping to it. The role objects can then be used to manage access to resources that is behind Spring Security. e.g. ```properties # groups that you created in your Azure AD tenant -allowed-groups: group1,group2 +allowed-group-names: group1,group2 ``` 4. (Optional) If you want to configure oauth2 redirect uri, please configure by : diff --git a/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/src/main/resources/application.yml b/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/src/main/resources/application.yml index 07125b848..2c1857ccd 100644 --- a/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/src/main/resources/application.yml +++ b/aad/spring-cloud-azure-starter-active-directory/aad-resource-server-by-filter/src/main/resources/application.yml @@ -18,6 +18,6 @@ spring: profile: tenant-id: ${AZURE_TENANT_ID} user-group: - allowed-groups: group1,group2 + allowed-group-names: group1,group2 redirect-uri-template: http://localhost:8080/