-
Notifications
You must be signed in to change notification settings - Fork 192
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
SDK login not working in New Teams for GCC High customers #2329
Comments
Hi @Happy202121, I'm sorry you've run into this. Can you please share the microsoft-teams-library-js version your app uses? |
@jekloudaMSFT @Happy202121 microsoft-teams-library-js version: @microsoft/teams-js@1.8.0 |
Hi @Happy202121 @KaratLee, I haven't been able to reproduce this issue with my own Teams application. Could you please follow the instructions here to enable client side logging and then reply to this with the client logs you see when the auth page is opened in the browser? Can I also know if you receive a |
@jekloudaMSFT We got a prompt that the URL could not be opened: Login failed: URL was unable to be opened in embedded browser. (Use Microsoft gov account to access Zoom For GCCH) |
@jekloudaMSFT This is the installation package used by Microsoft gov environment customers. If you use the Microsoft gov environment account to access any app on the Microsoft Teams new client, you should be able to see this problem. |
Hi @jekloudaMSFT is there any progress on this? |
Hi @KaratLee, I'm still investigating this issue and will raise it with Teams. Based on the logs, I suspect the issue may be a CSP violation causing the site to open in browser vs a new Teams window. Since the Teams URL for GCC high is gov.teams.microsoft.us, does gov.teams.microsoft.us need to be added to the frame-ancestors allowed by https://applications.zoomgov.com? |
@jekloudaMSFT Thanks for your response. We'll try your suggestions, but this process works fine in Microsoft Teams classic |
@jekloudaMSFT We followed your suggestion, but the problem is not solved. Can you help check it? |
@jekloudaMSFT Any updates? |
Hi @KaratLee thanks for the update, I will try to repro in GCCH environment and get back to you. Do you know what the source of the ERR_CONNECTION_REFUSED and 500 (Internal Server Error) errors is? I'm asking because it looks like they're occurring after Teams tries to open the new window |
@jekloudaMSFT |
Hi @KaratLee, thanks for your patience. I was able to repro the issue with a test app in the GCCH environment. I'm raising this with the Teams team and will provide another update soon |
Thanks, looking forward to the update notification. |
Hi @KaratLee @Happy202121, the Teams desktop team is working on a fix for this. I'll let you know when we have an ETA on the fix being available. |
Thanks @jekloudaMSFT, do you know which Teams client version will include this fix? |
Hello,
We discovered that, for GCC High customers, the Teams JS SDK authentication module in is not working the same with New Teams as it does with Teams Classic.
In Teams Classic, the GCC High user opens our app, clicks a sign-in button, then an embedded browser opens to handle the authorization and authentication.
In New Teams, the GCC High user opens our app, clicks a sign-in button, then the default browser opens a new tab to try and handle the authorization and authentication. The resulting request has the wrong cookies and fails as a result.
Here's what we're using:
microsoftTeams.authentication.authenticate({
url: loginUrl, width: 820, height: 620, successCallback: function(result) {
console.log('Login Successfully: ' + JSON.stringify(result)); that.reloadUserContext(); }, failureCallback: function(reason) {
console.log('Login failed: ' + reason);
The text was updated successfully, but these errors were encountered: