-
Notifications
You must be signed in to change notification settings - Fork 345
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
Adding authentication extension api to enable the extending of MSAL #4859
Conversation
# Conflicts: # tests/Microsoft.Identity.Test.Unit/pop/PoPTests.cs
Adding unit tests
# Conflicts: # src/client/Microsoft.Identity.Client/ApiConfig/Parameters/AcquireTokenCommonParameters.cs # src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs # src/client/Microsoft.Identity.Client/Extensibility/AbstractConfidentialClientAcquireTokenParameterBuilderExtension.cs # tests/Microsoft.Identity.Test.Common/Core/Mocks/MockHttpManagerExtensions.cs
src/client/Microsoft.Identity.Client/AuthScheme/IAuthenticationScheme.cs
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/PublicApiTests/ExtensiblityTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/CDT/CdtAuthenticationScheme.cs
Outdated
Show resolved
Hide resolved
# Conflicts: # src/client/Microsoft.Identity.Client/Cache/Items/MsalAccessTokenCacheItem.cs # src/client/Microsoft.Identity.Client/Extensibility/AbstractConfidentialClientAcquireTokenParameterBuilderExtension.cs # src/client/Microsoft.Identity.Client/OAuth2/MsalTokenResponse.cs # tests/Microsoft.Identity.Test.Common/Core/Mocks/MockHelpers.cs # tests/Microsoft.Identity.Test.Common/Core/Mocks/MockHttpManagerExtensions.cs # tests/Microsoft.Identity.Test.Unit/PublicApiTests/ExtensiblityTests.cs
src/client/Microsoft.Identity.Client/Extensibility/MsalAuthenticationExtension.cs
Outdated
Show resolved
Hide resolved
...tity.Client/Extensibility/AbstractConfidentialClientAcquireTokenParameterBuilderExtension.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/Microsoft.Identity.Client.csproj
Outdated
Show resolved
Hide resolved
...s/Microsoft.Identity.Test.Integration.netcore/SeleniumTests/DeviceCodeFlowIntegrationTest.cs
Outdated
Show resolved
Hide resolved
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.
Approved with comment on the telemetry point - consider using string
clean up
src/client/Microsoft.Identity.Client/AuthScheme/Bearer/BearerAuthenticationOperation.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/AuthScheme/PoP/PopAuthenticationOperation.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/AuthScheme/PoP/PopBrokerAuthenticationOperation.cs
Show resolved
Hide resolved
...lient/Microsoft.Identity.Client/AuthScheme/SSHCertificates/SSHCertAuthenticationOperation.cs
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/AuthExtension/AuthenticationOperationTests.cs
Outdated
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/AuthExtension/AuthenticationOperationTests.cs
Show resolved
Hide resolved
tests/Microsoft.Identity.Test.Unit/AuthExtension/MsalTestAuthenticationOperation.cs
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/AuthScheme/PoP/PopBrokerAuthenticationOperation.cs
Show resolved
Hide resolved
...tity.Client/Extensibility/AbstractConfidentialClientAcquireTokenParameterBuilderExtension.cs
Outdated
Show resolved
Hide resolved
src/client/Microsoft.Identity.Client/AuthenticationResultMetadata.cs
Outdated
Show resolved
Hide resolved
Co-authored-by: Ray Luo <[email protected]> Co-authored-by: Gladwin Johnson <[email protected]>
API has been decided already and is being used in MISE. Will update on next release |
when are we planning on a MSAL release with this? |
src/client/Microsoft.Identity.Client/AuthScheme/IAuthenticationOperation.cs
Show resolved
Hide resolved
@gladjohn planning on releasing by tomorrow. We are going to come back and do an incremental update after this where we can add your api proposal. The api is set to experimental for the time being. We are targeting a preview release of this in MISE later this month so they need a package sooner than later. Thanks for the review @gladjohn |
Fixes #
#4956
Changes proposed in this request
Renaming
IAuthenticationScheme
toIAuthenticationOperation
because it is being exposed for extending.Adding
WithAuthenticationExtension
api to enable external extensions.Please see
AuthenticationOperationTests.cs
for a demonstration of the new apiTesting
Added unit testing.
Performance impact
N/A
Documentation