-
Notifications
You must be signed in to change notification settings - Fork 99
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
Add PoP token support for ROPC flow #412
Add PoP token support for ROPC flow #412
Conversation
Add VCR tests for ROPC flow Fix formatting issues Add VCR tests for ROPC flow
732ee53
to
9b2754c
Compare
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.
PTAL
pkg/internal/token/testdata/ROPCPoPTokenFromBadPasswordVCR.yaml
Outdated
Show resolved
Hide resolved
pkg/internal/token/testdata/ROPCPoPTokenFromBadPasswordVCR.yaml
Outdated
Show resolved
Hide resolved
pkg/internal/token/testdata/ROPCPoPTokenFromUsernamePasswordVCR.yaml
Outdated
Show resolved
Hide resolved
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #412 +/- ##
==========================================
+ Coverage 64.34% 65.98% +1.64%
==========================================
Files 28 29 +1
Lines 1949 2046 +97
==========================================
+ Hits 1254 1350 +96
- Misses 620 624 +4
+ Partials 75 72 -3 ☔ View full report in Codecov by Sentry. |
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.
LGTM
This change adds PoP token support for ROPC login flow in order to enable using ROPC flow for automated testing of 1P AzRBAC scenarios.
Currently, automated testing for AzRBAC and PoP token flow relies on SPN login, which uses the msal
confidential
client. However, most customers will be using the interactive login flow which uses msal'spublic
client. In order to enable better testing of the customer scenario, this change enables PoP token support for username/password flow so that automated testing can be conducted for the public client.MSAL PR to make this change: AzureAD/microsoft-authentication-library-for-go#472
This PR vendors the latest MSAL release containing the change: https://github.com/AzureAD/microsoft-authentication-library-for-go/releases/tag/v1.2.2