-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
[Identity] Update SP credentials to use MSAL confidential client #13168
Conversation
/azp run net - identity - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
/// <param name="clientSecret">A client secret that was generated for the App Registration used to authenticate the client.</param> | ||
/// <param name="options">Options that allow to configure the management of the requests sent to the Azure Active Directory service.</param> | ||
public ClientSecretCredential(string tenantId, string clientId, string clientSecret, ClientSecretCredentialOptions options) | ||
: this(tenantId, clientId, clientSecret, (TokenCredentialOptions)options) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this cast (TokenCredentialOptions)options
is required?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added it because I wanted to be explicit about calling the overload which take TokenCredential
. Perhaps it's not needed if this(*) will never recurse.
APIs look good. |
} | ||
} | ||
|
||
private async ValueTask EnsureInitializedAsync(bool async) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need CancellationToken
here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After offline discussion of this I created a backlog issue to improve this #13201 once support is available in Azure.Core
/azp run net - identity - tests |
Azure Pipelines successfully started running 1 pipeline(s). |
Users/mayaggar/dataprotection (Azure#13168) * New Readme Config File * New Go Language Readme Config File * New Azure AZ Readme Config File * New Azure CLI Readme Config File * New Typescript Language Readme Config File * New Python Language Readme Config File * New C# Language Readme Config File * New AzureResourceSchema Readme Config File * New Swagger Spec File * New Swagger Example Spec File * Microsoft.data protection (Azure#12814) * moving changes from Private repo * changes for autorest vqalidation err * fix delete response * fixing lint and model errors * exposureControlledFeatures fixes * prettier fixes * fixing spell check issues * adding backuptype in custom-words * PolicyParameters related changes for Disk Backup * fixing PR comments * description changes * changes for preview to stable folder * changes for retention in monitoring * changes for stable in readme * fixing checklist gate issues * changes for systemdata in dppresource Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com> Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com> Co-authored-by: vityagi <vityagi@microsoft.com> * MFA MUA DPP swagger changes (Azure#13081) * MFA MUA DPP swagger changes * Resolving PR comments Co-authored-by: Madhumanti Dey <madhude@microsoft.com> * Swagger changes for VaultGuardResource Object (Azure#13116) * MFA MUA DPP swagger changes * Resolving PR comments * MFA MUA dpp swagger changes * Fixed preetierCheck failures * Fixed Avocado failures * Fixed LintDiff warning * resolved PR comments * GO SDK fix * Go SDK fix * Go SDK fix * preview related changes * Go SDK fix * resolved PR comments Co-authored-by: Madhumanti Dey <madhude@microsoft.com> * changes for preview DPP version * fix for credscan SAS Co-authored-by: sumitmal2711 <58544969+sumitmal2711@users.noreply.github.com> Co-authored-by: sumitmal <32121310+sumitmal@users.noreply.github.com> Co-authored-by: Mayank Aggarwal <mayaggar@microsoft.com> Co-authored-by: vityagi <vityagi@microsoft.com> Co-authored-by: deymadhumanti <58032062+deymadhumanti@users.noreply.github.com> Co-authored-by: Madhumanti Dey <madhude@microsoft.com>
No description provided.