Skip to content
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

Support authentication against PPE AAD login endpoint #1679

Open
v-dchandana opened this issue May 19, 2023 · 4 comments
Open

Support authentication against PPE AAD login endpoint #1679

v-dchandana opened this issue May 19, 2023 · 4 comments
Labels
feature request status: await community interest Looking for community engagement to prioritize

Comments

@v-dchandana
Copy link

Hi Team,

We are trying to implement accessibility task for PPE and Prod websites for MPN offers. We are able to identify prod website bugs but we are not able to identify the bugs in PPE and every time it is successfully running.

Pipeline link: https://microsoft.visualstudio.com/Universal%20Store/_build/results?buildId=70508803&view=results

We cannot implement this unless PPE will identify the bugs. As a development process it need to identify bugs in PPE first then we can able to proceed to prod.

Can you please prioritize this.

Thanks,
Dasari Chandana.

@microsoft-github-policy-service microsoft-github-policy-service bot added the status: new This issue is new and requires triage by DRI. label May 19, 2023
@dbjorge
Copy link
Contributor

dbjorge commented May 22, 2023

Clarifying and updating title based on support thread from a few weeks ago. Internal folks can find more context by searching for support thread titled "Onboard to Accessibility Insight Shift-Left Solution for PC Membership - Offers [Web]".

The issue here is that the PPE site in question is authenticating against the PPE AAD login endpoint, login.windows-ppe.net, rather than the usual production AAD login endpoint, login.microsoft.com. The service's /packages/crawler/src/authenticator/azure-active-directory-authenticator.ts only currently supports the production login endpoint (in that that's the one you get when doing the initial auth flow against portal.azure.com). The page under test ends up redirecting to a https://login.windows-ppe.net/... URL and scanning that, rather than using the intended auth flow.

I think the preferred path for enabling this would probably be adding a new authType option for AAD-PPE or similar. The other options that come to mind might be to either add a new subparameter for AAD login endpoint (where the user could pass login.windows-ppe.net themselves) or to add an option to infer it based on where the page redirects to, but I'm not a fan of either of those options since I think it makes it too easy for a user to accidentally specify something that might result in the scanner entering credentials into an unexpected place.

This would involve work in both the action and service repos. Note that the service repo currently has two diverged auth paths, for reasons that I'm not super clear on - I think the one that the action is going through lives in /packages/crawler/src/authenticator/ and the one that WCP goes through lives in /packages/scanner-global-library-src/authenticator/. It would be good to re-evaluate whether these paths can be merged as part of implementing this to ensure that WCP and AI4ADO maintain feature parity.

@dbjorge dbjorge changed the title Accessibility task in PPE environment. Support authentication against PPE AAD login endpoint May 22, 2023
@dbjorge dbjorge added the status: ready for triage This issue is ready to be triaged by the Accessibility Insights team. label May 22, 2023
@microsoft-github-policy-service
Copy link
Contributor

This issue has been marked as ready for team triage; we will triage it in our weekly review and update the issue. Thank you for contributing to Accessibility Insights!

@microsoft-github-policy-service microsoft-github-policy-service bot removed the status: new This issue is new and requires triage by DRI. label May 22, 2023
@dbjorge dbjorge removed their assignment May 22, 2023
@DaveTryon DaveTryon added status: await community interest Looking for community engagement to prioritize and removed status: ready for triage This issue is ready to be triaged by the Accessibility Insights team. labels Jun 1, 2023
@v-dchandana
Copy link
Author

Hi Team,

Could you please provide any update on above.

Thanks,
Dasari Chandana.

@JGibson2019
Copy link
Contributor

@joestegman425 tagging you here to consider as we do more shift left work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request status: await community interest Looking for community engagement to prioritize
Projects
Development

No branches or pull requests

5 participants