-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Support multiple data source prop passwordless and new prop of credential bean name #42486
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
moarychan
merged 23 commits into
Azure:main
from
moarychan:bugfixes/mult-ds-prop-inherit-standalone-prop-and-support-credential-bean-name-prop
Oct 31, 2024
Merged
Changes from all commits
Commits
Show all changes
23 commits
Select commit
Hold shift + click to select a range
c0de5df
Fix primitive type copy issue
moarychan acc1255
Support enhance multiple datasource properties
moarychan 3cad5ad
Avoid configuring conn string if credential has been configured.
moarychan fa32e5a
Avoid overriding service bus client credential and make the resource …
moarychan 433f082
Support customizing the credential for Service Bus sPRING Integration…
moarychan 28ac8cd
Support customizing the credential for Service Bus sPRING Integration…
moarychan f3abae4
Support customizing the credential for Redis passwordless scenario
moarychan 052537a
Fix ut failures: duplicate global properties beans, new dependency fo…
moarychan 52263a7
Update change log
moarychan ba4f2f9
Fix code smells
moarychan 5591dec
Update revapi: addedToInterface
moarychan 0a68acb
Decouple application context for AzureRedisCredentials
moarychan 641fde3
Remove public access modifier and static keyword
moarychan de2b137
Resolve comments
moarychan cf4df22
Fix code smells
moarychan e34a913
Use the fixed class loader
moarychan e4f22a7
Use null class loader
moarychan 993d338
Fix ut failure, ignore provider bean creation since the custom class …
moarychan 4d31743
Resolve comments
moarychan 3413d56
Resolve comments
moarychan 5504e05
Resolve comments
moarychan 26ef977
Resolve comments
moarychan 26fe49e
Remove unused code
moarychan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
30 changes: 30 additions & 0 deletions
30
...implementation/context/SpringTokenCredentialProviderContextProviderAutoConfiguration.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
package com.azure.spring.cloud.autoconfigure.implementation.context; | ||
|
||
import com.azure.identity.extensions.implementation.template.AzureAuthenticationTemplate; | ||
import com.azure.spring.cloud.autoconfigure.implementation.jdbc.SpringTokenCredentialProviderContextProvider; | ||
import org.springframework.boot.autoconfigure.EnableAutoConfiguration; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass; | ||
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean; | ||
import org.springframework.context.annotation.Bean; | ||
import org.springframework.context.annotation.Configuration; | ||
|
||
import static com.azure.spring.cloud.autoconfigure.implementation.context.AzureContextUtils.SPRING_TOKEN_CREDENTIAL_PROVIDER_CONTEXT_BEAN_NAME; | ||
|
||
/** | ||
* {@link EnableAutoConfiguration Auto-configuration} for Spring Cloud Azure {@link SpringTokenCredentialProviderContextProvider}. | ||
* | ||
* @since 5.17.0 | ||
*/ | ||
@Configuration(proxyBeanMethods = false) | ||
@ConditionalOnClass(AzureAuthenticationTemplate.class) | ||
class SpringTokenCredentialProviderContextProviderAutoConfiguration { | ||
|
||
@Bean(name = SPRING_TOKEN_CREDENTIAL_PROVIDER_CONTEXT_BEAN_NAME) | ||
@ConditionalOnMissingBean | ||
SpringTokenCredentialProviderContextProvider springTokenCredentialProviderContextProvider() { | ||
return new SpringTokenCredentialProviderContextProvider(); | ||
} | ||
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.