From 7555c3637111a4d203fd7972f7d43fea9835ea7f Mon Sep 17 00:00:00 2001 From: lzc-1997-abel <70368631+lzc-1997-abel@users.noreply.github.com> Date: Tue, 17 Nov 2020 16:18:20 +0800 Subject: [PATCH 1/2] remove unused properties --- .../aad/AADAuthenticationProperties.java | 40 ------------------- 1 file changed, 40 deletions(-) diff --git a/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java b/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java index 780ccc2eab89..bcefe16ea862 100644 --- a/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java +++ b/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java @@ -60,20 +60,6 @@ public class AADAuthenticationProperties { */ private String clientSecret; - /** - * Redirection Endpoint: Used by the authorization server - * to return responses containing authorization credentials to the client via the resource owner user-agent. - */ - private String redirectUriTemplate; - - /** - * Optional. scope doc: - * https://docs.microsoft.com/en-us/azure/active-directory/develop/v2-permissions-and-consent#scopes-and-permissions - * @deprecated Please use "azure.activedirectory.authorization.client-registration-id.scope" instead. - */ - @Deprecated - private List scope = Arrays.asList("openid", "profile", "https://graph.microsoft.com/user.read"); - /** * App ID URI which might be used in the "aud" claim of an id_token. */ @@ -312,32 +298,6 @@ public void setClientSecret(String clientSecret) { this.clientSecret = clientSecret; } - public String getRedirectUriTemplate() { - return redirectUriTemplate; - } - - public void setRedirectUriTemplate(String redirectUriTemplate) { - this.redirectUriTemplate = redirectUriTemplate; - } - - /** - * @param scope scope - * @deprecated Please use "azure.activedirectory.authorization.client-registration-id.scope" instead. - */ - @Deprecated - public void setScope(List scope) { - this.scope = scope; - } - - /** - * @return scope - * @deprecated Please use "azure.activedirectory.authorization.client-registration-id.scope" instead. - */ - @Deprecated - public List getScope() { - return scope; - } - @Deprecated public void setActiveDirectoryGroups(List activeDirectoryGroups) { this.userGroup.setAllowedGroups(activeDirectoryGroups); From 94a0f375f560051646e2fdc3fc3f4f0aa9a95d1c Mon Sep 17 00:00:00 2001 From: lzc-1997-abel <70368631+lzc-1997-abel@users.noreply.github.com> Date: Tue, 17 Nov 2020 16:48:00 +0800 Subject: [PATCH 2/2] remove unused import --- .../spring/autoconfigure/aad/AADAuthenticationProperties.java | 1 - 1 file changed, 1 deletion(-) diff --git a/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java b/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java index bcefe16ea862..3ff646b13c51 100644 --- a/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java +++ b/sdk/spring/azure-spring-boot/src/main/java/com/azure/spring/autoconfigure/aad/AADAuthenticationProperties.java @@ -13,7 +13,6 @@ import javax.annotation.PostConstruct; import javax.validation.constraints.NotEmpty; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.List;