This repository was archived by the owner on Jan 5, 2026. It is now read-only.
[#6589] Default to MSAL and eliminate ADAL without breaking changes#6605
Merged
Conversation
Collaborator
Contributor
|
✔️ No Binary Compatibility issues for Microsoft.Bot.Builder.Integration.AspNet.Core.dll |
tracyboehrer
approved these changes
May 10, 2023
This was referenced May 14, 2026
This was referenced May 14, 2026
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
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Fixes #6589
Description
This PR migrates ADAL related functionality to MSAL internally.
Specific Changes
AppCredentials.BuildAuthenticatorhas been deprecated and theBuildIAuthenticatormethod should be used instead.BuildIAuthenticatormethod to theCertificateAppCredentialsclass, providing the MSAL authenticator instance, also the internal class variables have been changed to minimize the ADAL implementation without generating breaking changes.JwtTokenProviderFactorysince it's no longer used in MSI related classes internally. Related classes will redirect any constructor using the provider to the one without it.ManagedIdentityAuthenticatorclass to use MSAL functionality instead ofJwtTokenProviderFactoryto acquire the token.BuildIAuthenticatormethod to theMicrosoftAppCredentialsclass, providing the MSAL authenticator instance.Microsoft.IdentityModel.Clients.ActiveDirectory(ADAL) package reference from Connector, since it's no longer used.Microsoft.Azure.Services.AppAuthenticationpackage reference that uses ADAL underneath couldn't be removed, since it will generate breaking changes.JwtTokenProviderFactoryparameter class.Testing
The following image shows a few bots working, the combination of skill bots and the FunctionalTests pipeline passing successfully.
