Skip to content
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

add support for AuthFileCredential #7552

Closed
wants to merge 10 commits into from
Closed

add support for AuthFileCredential #7552

wants to merge 10 commits into from

Conversation

Luyunmt
Copy link
Contributor

@Luyunmt Luyunmt commented Jan 20, 2020

Added AuthFileCredential and its tests to azure-identity.
Azure/azure-sdk-for-net#9312

@g2vinay g2vinay requested a review from srnagar January 27, 2020 18:58
Comment on lines +11 to +13
import org.powermock.core.classloader.annotations.PowerMockIgnore;
import org.powermock.core.classloader.annotations.PrepareForTest;
import org.powermock.modules.junit4.PowerMockRunner;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Try using Mockito and avoid PowerMockito.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be deferred as discussed.

void ensureCredential() {
if (credential == null) {
try {
credential = BuildCredentialForCredentialsFile(ParseCredentialsFile(filepath));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Guard this creation of credential in a multi-threaded environment.

Copy link
Contributor Author

@Luyunmt Luyunmt Mar 2, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

credential is instance field and method credential.gettoken doesn't change the state of credential,so we don't think it is necessary to take care the multi-threaded environment

@jongio
Copy link
Member

jongio commented Mar 9, 2020

@g2vinay - Can you help us get this approved for April release?

@joshfree joshfree added Azure.Identity Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved. labels Mar 10, 2020
@jongio
Copy link
Member

jongio commented Mar 23, 2020

This is on hold for further discussion.

@tzhanl tzhanl closed this Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Azure.Identity Client This issue points to a problem in the data-plane of the library. feature-request This issue requires a new behavior in the product in order be resolved.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants