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

getAuthToken() does not show the consent in a popup on a browser #2421

Open
wfseng opened this issue Jul 23, 2024 · 5 comments
Open

getAuthToken() does not show the consent in a popup on a browser #2421

wfseng opened this issue Jul 23, 2024 · 5 comments

Comments

@wfseng
Copy link

wfseng commented Jul 23, 2024

A simple SSO token request does not generate a popup but instead redirects the current browser tab/window.

await microsoftTeams.app.initialize(); await microsoftTeams.authentication.getAuthToken();

If the user either rejects or accepts consent, they are redirected back to Teams default home url, away from the Teams tab app client.

The consent popup works ok in the Teams desktop client.
To reproduce this, the user must have never provided consent to the app.

Originally posted by @Prasad-MSFT in #2088 (comment)

@wfseng wfseng changed the title getAuthToken() does not show the consent in a popup on a browser getAuthToken() does not show the consent in a popup on a browser Jul 23, 2024
@Prasad-MSFT
Copy link

@wfseng Thanks for raising your issue. Did you try the workaround as stated here?

@wfseng
Copy link
Author

wfseng commented Jul 23, 2024

@wfseng Thanks for raising your issue. Did you try the workaround as stated here?

Yes, we also tried Incognito in Google Chrome and In-Private mode in Edge to ensure all browser cache is cleared

@Prasad-MSFT
Copy link

Prasad-MSFT commented Jul 24, 2024

@wfseng Thanks for confirming this. We are trying this from our side to repro. Also please share any repro video or deployed app if you have for better investigation.

@wfseng
Copy link
Author

wfseng commented Jul 29, 2024

This is the expected result in the browser.

image

However, the popup consent is full screen (login.microsoftonline.com becomes the URL in the address bar)

@Prasad-MSFT
Copy link

@wfseng , we have raised a bug for this issue. We will inform you once we get any further update from engineering team.

Thanks!

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

No branches or pull requests

3 participants