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

Intermittent Login Issue #78

Open
mike9182 opened this issue Apr 17, 2020 · 5 comments
Open

Intermittent Login Issue #78

mike9182 opened this issue Apr 17, 2020 · 5 comments
Labels
Dependency Bugs Bug in a dependent package

Comments

@mike9182
Copy link
Contributor

There is an intermittent login issue where the browser will redirect away from the authentication page before authentication has completed. I have one environment where this is difficult to reproduce and another where it can be reproduced consistently and all tests fail.

The result is a page with the message "This login.microsoftonline.com page can't be found", and the URL is "https://loginmicrosoftonline.com/main.aspx?etn=account&pagetype=entityrecord...".

@mike9182
Copy link
Contributor Author

After doing some more research, I realized that the original fix was not necessary. Updating Dynamics365.UIAutomation.API to the latest version fixed the issue. I have created a new pull request.

@mVermaat
Copy link
Owner

So if I understand it correctly, you have an issue with logging in sometimes that you fixed in the first commit (#79). After that you found that when updating to the latest version in EasyRepro, it's no longer needed. This means I only need to merge (#80)?

Can you elaborate on the issue a little? As when I update to the latest version (12013) all of the login fails on firefox due to some strange redirection. That's why I haven't updated to that version yet. It seems to work again when i connect to their DEV (unreleased) branch.

@mike9182
Copy link
Contributor Author

Either one of the pull requests will fix the issue on their own, they just fix the issue in different ways.

The environment where this is consistently failing uses SSO which causes the browser to spend more time on part of the login. It appears that the Login function is returning before the browser finishes logging in. As a result, the next browser action attempts to navigate to an entity record while the domain is still "login.microsoftonline.com", resulting in the error below.

Example
image

@mVermaat
Copy link
Owner

This issue still appeared in firefox. PR in EasyRepro open microsoft/EasyRepro#878

@mVermaat mVermaat added the Dependency Bugs Bug in a dependent package label May 27, 2020
@mVermaat mVermaat added this to the 3.1 milestone May 28, 2020
This was referenced May 28, 2020
mVermaat added a commit that referenced this issue May 31, 2020
Updated EasyRepro to latest version.

Workaround for #78 implemented until EasyRepro provides a fix
Workaround for #88 implemented until EasyRepro provides a fix
Fixed #89. Dialogs working again.
@mVermaat
Copy link
Owner

Workaround implemented in master

@mVermaat mVermaat removed this from the 3.1 milestone Jun 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dependency Bugs Bug in a dependent package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants