-
Notifications
You must be signed in to change notification settings - Fork 378
Remove username password integration test #5544
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
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.
It looks like the IByUsernameAndPassword.AcquireTokenByUsernamePassword is not deprecated. Not sure if we should remove the tests that use this? CC @bgavrilMS
This is for confidential clients it looks like.
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.
See
Line 31 in d6f9310
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.
When it was originally deprecated there were some comments about CCA, seemed like Scott wanted it deprecated too for consistency but ultimately it was left as-is: #5355 (comment)
But the CCA version is going to be deprecated at some point too, right? Or is that expected to stick around for a while?
(not sure about the other MSALs, but over in MSAL Java we only had ROPC in the public client so this wasn't an issue)
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.
Agreed. I marked the tests that I think can be deleted. I'm ok to delete the incorrect password tests and some PCA tests, but not the CCA tests.
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.
@bgavrilMS @trwalke Addressed PR feedback by restoring the file and selectively removing tests as requested. Kept core ROPC tests (ROPC_AAD_Async, ROPC_AAD_CCA_Async) while removing deprecated/duplicate tests (Arlington, MSA, telemetry, and incorrect password tests). Also cleaned up orphaned helper methods and unused constants. Ready for review.
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.
verify if CCA scenario is needed.
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
...t.Identity.Test.Integration.netcore/HeadlessTests/UsernamePasswordIntegrationTests.NetFwk.cs
Show resolved
Hide resolved
68fefb0 to
d9ce14a
Compare
Summary
Removes username/password integration tests that use the deprecated Resource Owner Password Credentials (ROPC) flow.
Rationale
❌ Removed: UsernamePasswordIntegrationTests.NetFwk.cs