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

Extend browser user authentication provide to handle Condition Access #361

Open
wants to merge 2 commits into
base: integration
Choose a base branch
from

Conversation

Grant-Archibald-MS
Copy link
Contributor

Pull Request Template

Description

Provide additional steps in the browser based authentication to handle conditional access using provider.

Checklist

  • The code change is covered by unit tests. I have added tests that prove my fix is effective or that my feature works
  • I have performed end-to-end test locally.
  • New and existing unit tests pass locally with my changes
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I used clear names for everything
  • I have performed a self-review of my own code

@Grant-Archibald-MS Grant-Archibald-MS requested a review from a team as a code owner August 7, 2024 18:04
{
if (await page.IsVisibleAsync($"[data-test-id=\"{personaEmail}\"]"))
{
logger.LogInformation($"Selecting {personaEmail}");

Check warning

Code scanning / CodeQL

Exposure of private information Medium test

Private data returned by
access to local variable personaEmail
is written to an external location.
Private data returned by
access to local variable personaEmail
is written to an external location.
Private data returned by
access to local variable personaEmail
is written to an external location.
Private data returned by
access to local variable personaEmail
is written to an external location.
Copy link

github-actions bot commented Aug 7, 2024

Code Coverage

Package Line Rate Branch Rate Complexity Health
Microsoft.PowerApps.TestEngine 0% 0% 1181
testengine.auth.localcertificate 100% 100% 7
Microsoft.PowerApps.TestEngine 1% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 1% 652
testengine.auth.localcertificate 0% 0% 7
testengine.user.certificate 77% 67% 59
Microsoft.PowerApps.TestEngine 0% 0% 1181
testengine.auth.certificatestore 100% 100% 11
Microsoft.PowerApps.TestEngine 0% 0% 1181
testengine.auth.certificatestore 100% 100% 11
Microsoft.PowerApps.TestEngine 89% 86% 1185
Microsoft.PowerApps.TestEngine 5% 3% 1181
Microsoft.PowerApps.TestEngine.Tests 1% 2% 652
testengine.provider.canvas 81% 87% 93
Microsoft.PowerApps.TestEngine 1% 0% 1181
testengine.module.pause 100% 100% 6
Microsoft.PowerApps.TestEngine 0% 0% 1181
testengine.auth.localcertificate 100% 100% 7
Microsoft.PowerApps.TestEngine 0% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 0% 652
testengine.user.browser 52% 35% 35
Microsoft.PowerApps.TestEngine 4% 3% 1181
testengine.provider.mda 53% 60% 115
Microsoft.PowerApps.TestEngine 1% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 1% 652
testengine.user.environment 95% 91% 31
Microsoft.PowerApps.TestEngine 1% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 1% 652
testengine.auth.localcertificate 0% 0% 7
testengine.user.certificate 77% 67% 59
Microsoft.PowerApps.TestEngine 89% 86% 1185
Microsoft.PowerApps.TestEngine 5% 3% 1181
Microsoft.PowerApps.TestEngine.Tests 1% 2% 652
testengine.provider.canvas 81% 87% 93
Microsoft.PowerApps.TestEngine 1% 0% 1181
testengine.module.pause 100% 100% 6
Microsoft.PowerApps.TestEngine 0% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 0% 652
testengine.user.browser 52% 35% 35
Microsoft.PowerApps.TestEngine 1% 0% 1181
Microsoft.PowerApps.TestEngine.Tests 0% 1% 652
testengine.user.environment 95% 91% 31
Microsoft.PowerApps.TestEngine 0% 0% 1181
testengine.module.mda 94% 100% 34
Microsoft.PowerApps.TestEngine 4% 3% 1181
testengine.provider.mda 53% 60% 115
Summary 12% (5541 / 77031) 12% (1984 / 19536) 28425

Minimum allowed line rate is 10%

{
// Default to msedge browser
launchOptions.Channel = "msedge";
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we reset the channel to input value from the user if it is specifically requested in the yaml

{
var complete = false;

var persona = testState.GetTestSuiteDefinition().Persona;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

null checks for the definition, persona and email

}
}

if (!complete)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

would it make sense to add a pause here to wait for user to attempt login

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants