You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: sdk/spring/CHANGELOG.md
+8Lines changed: 8 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,14 @@ This section includes changes in `spring-cloud-azure-stream-binder-eventhubs` mo
14
14
#### Breaking Changes
15
15
- Make the default partition behavior of Spring Cloud Azure EventHubs binder be a round-robin assignment to align with Event Hubs.[#32816](https://github.com/Azure/azure-sdk-for-java/pull/32816).
16
16
17
+
### Spring Cloud Azure Autoconfigure
18
+
This section includes changes in `spring-cloud-azure-autoconfigure` module.
19
+
20
+
#### Breaking Changes
21
+
- Deprecated properties for AAD and AAD B2C. [#29471](https://github.com/Azure/azure-sdk-for-java/pull/33538).
22
+
- Deprecated properties `spring.cloud.azure.active-directory.jwt-connect-timeout`, `spring.cloud.azure.active-directory.jwt-read-timeout`, `spring.cloud.azure.active-directory.jwt-size-limit`, if you want to configure them, please provide a RestOperations bean.
23
+
- Deprecated properties `spring.cloud.azure.active-directory.b2c.jwt-connect-timeout`, `spring.cloud.azure.active-directory.b2c.jwt-read-timeout`, `spring.cloud.azure.active-directory.b2c.jwt-size-limit`, if you want to configure them, please provide a RestOperations bean.
24
+
17
25
## 4.6.0 (2023-02-07)
18
26
- This release is compatible with Spring Boot 2.5.0-2.5.14, 2.6.0-2.6.14, 2.7.0-2.7.8. (Note: 2.5.x (x>14), 2.6.y (y>14) and 2.7.z (z>8) should be supported, but they aren't tested with this release.)
19
27
- This release is compatible with Spring Cloud 2020.0.3-2020.0.6, 2021.0.0-2021.0.5. (Note: 2020.0.x (x>6) and 2021.0.y (y>5) should be supported, but they aren't tested with this release.)
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/properties/AadAuthenticationProperties.java
+27-11Lines changed: 27 additions & 11 deletions
Original file line number
Diff line number
Diff line change
@@ -82,42 +82,51 @@ public class AadAuthenticationProperties implements InitializingBean {
* App ID URI which might be used in the "aud" claim of an id_token.
85
+
* App ID URI which might be used in the "aud" claim of an id_token. For instance, 'api://{applicationId}'.
86
+
* See Microsoft doc about APP ID URL for more details: https://learn.microsoft.com/azure/active-directory/develop/security-best-practices-for-app-registration#application-id-uri
86
87
*/
87
88
privateStringappIdUri;
88
89
89
90
/**
90
-
* Add additional parameters to the Authorization URL.
91
+
* Additional parameters above the standard parameters defined in the OAuth 2.0 Authorization Framework. Would be added to the Authorization URL for customizing the Authorization Request. For instance, 'prompt: login'.
92
+
* See Microsoft doc about more additional parameters information: https://learn.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code
* The redirect uri after logout. For instance, 'http://localhost:8080/'.
129
+
* See Microsoft doc about Redirect URI for more details: https://learn.microsoft.com/azure/active-directory/develop/security-best-practices-for-app-registration#redirect-uri
121
130
*/
122
131
privateStringpostLogoutRedirectUri;
123
132
@@ -128,12 +137,19 @@ public class AadAuthenticationProperties implements InitializingBean {
128
137
privateBooleansessionStateless = false;
129
138
130
139
/**
131
-
* The OAuth2 authorization clients.
140
+
* The OAuth2 authorization clients, contains the authorization grant type, client authentication method and scope.
141
+
* The clients will be converted to OAuth2 ClientRegistration, the other ClientRegistration information(such as client id, client secret) inherits from the delegated OAuth2 login client 'azure'.
* Type of the Azure AD application. Supported types are: WEB_APPLICATION, RESOURCE_SERVER, RESOURCE_SERVER_WITH_OBO, WEB_APPLICATION_AND_RESOURCE_SERVER. The value can be inferred by dependencies, only 'web_application_and_resource_server' must be configured manually.
137
153
*/
138
154
privateAadApplicationTypeapplicationType;
139
155
@@ -201,7 +217,7 @@ public static class UserGroupProperties {
* If "true", use "v1.0/me/transitiveMemberOf" to get members. Otherwise, use "v1.0/me/memberOf".
220
+
* Whether to use transitive way to get members. If "true", use "v1.0/me/transitiveMemberOf" to get members. Otherwise, use "v1.0/me/memberOf". The default value is `false`.
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/properties/AadProfileProperties.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@ public class AadProfileProperties {
18
18
*/
19
19
privateStringtenantId; // tenantId can not set to "common" here, otherwise we can not know whether it's set by customer or it is the default value.
20
20
/**
21
-
* Name of the Azure cloud to connect to. Supported types are: AZURE, AZURE_CHINA, AZURE_GERMANY, AZURE_US_GOVERNMENT, OTHER.
21
+
* Name of the Azure cloud to connect to. Supported types are: AZURE, AZURE_CHINA, AZURE_GERMANY, AZURE_US_GOVERNMENT, OTHER. The default value is `AZURE`.
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/properties/AadResourceServerProperties.java
+2-3Lines changed: 2 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -38,13 +38,12 @@ public class AadResourceServerProperties implements InitializingBean {
38
38
39
39
/**
40
40
*
41
-
* Configure which claim in access token be returned in AuthenticatedPrincipal#getName. Default valueis "sub".
41
+
* Configure which claim in access token be returned in AuthenticatedPrincipal#getName. Example: If use the default value, and the access_token's "sub" scope value is "testValue", then AuthenticatedPrincipal#getName will return "testValue". The default value is `"sub"`.
42
42
*/
43
43
privateStringprincipalClaimName;
44
44
45
45
/**
46
-
* Configure which claim will be used to build GrantedAuthority, and prefix of the GrantedAuthority's string value.
47
-
* Default value is: "scp" -> "SCOPE_", "roles" -> "APPROLE_".
46
+
* Configure which claim will be used to build GrantedAuthority, and prefix of the GrantedAuthority's string value. Example: If use the default value, and the access_token's "scp" scope value is "testValue", then GrantedAuthority with "SCOPE_testValue" will be created. The default value is `"scp" -> "SCOPE_", "roles" -> "APPROLE_"`.
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aad/properties/AuthorizationClientProperties.java
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aadb2c/properties/AadB2cProperties.java
+21-7Lines changed: 21 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -54,23 +54,30 @@ public class AadB2cProperties implements InitializingBean {
* App ID URI which might be used in the "aud" claim of a token.
57
+
* App ID URI which might be used in the "aud" claim of a token. For instance, 'https://{hostname}/{applicationId}'.
58
+
* See Microsoft doc about APP ID URL for more details: https://learn.microsoft.com/azure/active-directory/develop/security-best-practices-for-app-registration#application-id-uri
58
59
*/
59
60
privateStringappIdUri;
60
61
61
62
/**
62
-
* Connection Timeout for the JWKSet Remote URL call. Deprecated. If you want to configure this, please provide a RestOperations bean.
63
+
* Connection Timeout(duration) for the JWKSet Remote URL call. The default value is `500s`.
64
+
* @deprecated If you want to configure this, please provide a RestOperations bean.
* Additional parameters above the standard parameters defined in the OAuth 2.0 Authorization Framework. Would be added to the Authorization URL for customizing the Authorization Request. For instance, 'prompt: login'.
90
+
* See Microsoft doc about more additional parameters information: https://learn.microsoft.com/azure/active-directory/develop/v2-oauth2-auth-code-flow#request-an-authorization-code
* The OAuth2 authorization clients, contains the authorization grant type(only support client credentials) and scope.
122
+
* The clients will be converted to OAuth2 ClientRegistration, the other ClientRegistration information(such as client id, client secret) inherits from the OAuth2 login client(sign-in user flow).
Copy file name to clipboardExpand all lines: sdk/spring/spring-cloud-azure-autoconfigure/src/main/java/com/azure/spring/cloud/autoconfigure/aadb2c/properties/AuthorizationClientProperties.java
0 commit comments