Powerapps authentication problem #23178
Unanswered
ieZaky
asked this question in
Questions and Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Current behavior
Using v10.4.0, there was a new feature added which is: experimentalModifyObstructiveThirdPartyCode. Using this feature, I could authenticate the Microsoft login normally using username and password. However, after logging in and being redirected to powerapps, It shows a blank page where Powerapps does not sense that am an authenticated user at all. I even checked the application storage and it did contain my token and it showed that am an authenticated user so why powerapps behaving in such a way? (Also am new with Cypress and its first time to use Cypress with Powerapps so if there are missing data or info to be provided just let me know please) Thanks a lot!
Sample code:
describe('POC', () => {
Cypress.on('uncaught:exception', (err, runnable) => {
return false;
});
beforeEach(() => {
});
it('passes', () => {
cy.origin('https://login.microsoftonline.com', () => {
cy.visit('Here is link to powerapps application home page');
cy.get('[name="loginfmt"]').should('be.visible').type("Email here").click();
cy.get('[name="passwd"]').should('be.visible').type("Password here").click();
cy.get('[type="submit"]').should('be.visible').click();
});
});
});
Is there a working solution for this?
Desired behavior
To be redirected to my application home page with authenticated user.
Test code to reproduce
As above.
Cypress Version
10.4.0
Beta Was this translation helpful? Give feedback.
All reactions