-
Notifications
You must be signed in to change notification settings - Fork 377
Migrate to Microsoft.Identity.Client for creating aka.ms links #13316
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
Migrate to Microsoft.Identity.Client for creating aka.ms links #13316
Conversation
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.
@MilenaHristova if this is a new feature that should eventually replace the current way and this is a feature switch you should ideally:
- Desribe this in the PR
- Create an issue that says something like "switch to the new library in full once we know it works"
- Add TODOs in the code to say it's temporary, link the issue and say it will be removed as it's a feature switch only
src/Microsoft.DotNet.Build.Tasks.Feed/src/PublishArtifactsInManifest.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
src/Microsoft.DotNet.Deployment.Tasks.Links/src/AkaMSLinksManager.cs
Outdated
Show resolved
Hide resolved
…nifest.cs Co-authored-by: Přemek Vysoký <[email protected]>
| // using the new Microsoft.Identity.Client library | ||
| private async Task<HttpClient> CreateClientUsingMSAL() | ||
| { | ||
| //_log.LogMessage(MessageImportance.High, "Creating a client using MSAL.NET"); |
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.
Ah, I guess this was forgotten behind. You could log this on a lower level and you'd still find it in the binlog just not the regular log
| </PropertyGroup> | ||
|
|
||
| <ItemGroup> | ||
| <PackageReference Include="Microsoft.Identity.Client" Version="4.53.0" /> |
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.
We define all package versions in Versions.props. Please move it there into the "externals" section.
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.
Moved it in the next pr #13476
|
Great change. Note that symboluploader in the dotnet-symboluploader also uses |
|
@MilenaHristova do we need to make changes in the |
@hoyosjs - you seem to be the last one contributing to |
|
The diagnostics teams helps maintain it - the AAD option hasn't been deeply supported lately. All our usage is around is PATs. We do know the migration is necessary - and at the same time we are trying to deprecate the tool in favor of symbol. cc: @dotnet/dotnet-diag |
dotnet/arcade-services#2631
Migrating from
Microsoft.IdentityModel.Clients.ActiveDirectorytoMicrosoft.Identity.Clientfor authenticating with Azure Active Directory and creating aka.ms links, becauseMicrosoft.IdentityModel.Clients.ActiveDirectoryis deprecated.Adding a feature switch so that the change can get to the Stage-DotNet-Test pipeline without breaking arcade and we can make sure publishing works with the new library.
Once it's validated by running the staging pipeline we'll remove the switch and leave the code that uses the new library. #13318
To double check: