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

[Identity] Update SP credentials to use MSAL confidential client #13168

Merged
merged 8 commits into from
Jul 2, 2020

Conversation

schaabs
Copy link
Contributor

@schaabs schaabs commented Jul 2, 2020

No description provided.

@schaabs
Copy link
Contributor Author

schaabs commented Jul 2, 2020

/azp run net - identity - tests

@azure-pipelines
Copy link

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)
Copy link
Contributor

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?

Copy link
Contributor Author

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.

@KrzysztofCwalina
Copy link
Member

APIs look good.

}
}

private async ValueTask EnsureInitializedAsync(bool async)
Copy link
Contributor

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?

Copy link
Contributor Author

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

sdk/identity/tests.yml Outdated Show resolved Hide resolved
@schaabs
Copy link
Contributor Author

schaabs commented Jul 2, 2020

/azp run net - identity - tests

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@schaabs schaabs merged commit 95f99d9 into Azure:master Jul 2, 2020
prmathur-microsoft pushed a commit that referenced this pull request Jul 8, 2020
)

* Update SP credentials to use MSAL confidential client

* updating api spec

* fixing tests

* work around null PrivateKey issue on net461

* fixing pwsh presteps

* fixing PR feedback issues

* fixing doc comment

* adding ITokenCacheOptions to client credential options types
openapi-sdkautomation bot pushed a commit to AzureSDKAutomation/azure-sdk-for-net that referenced this pull request Feb 26, 2021
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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants