-
Notifications
You must be signed in to change notification settings - Fork 196
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
Unable to Authorize Azure Functions in Teams Toolkit App Debugged on Edge Browser #12666
Comments
@lovey25 I can't reproduce your issue. The function app works perfectly in my side. Could you provide the SDK version in your package-lock.json? The latest teams-js is 2.30.0 and the @microsoft/teamsfx is 2.3.3. You may want to update these packages and retry if you didn't use the latest. |
Hello, Today, I started a new sample project in Teams Toolkit and observed the same issue as before. However, when I ran the same app in a Windows environment, it worked without any problems. Additionally, Moreover, when I start a sample project in Teams Toolkit, it sets the library versions lower than those you mentioned. Could you guide me on the best way to update the libraries to the latest versions? Thank you for your support. Here is the information you requested:
|
Your teams-js package are the latest. NPM will match the latest 2.x.x as your package.json specifies ^2.22.0. |
Thank you for analyzing the error and providing feedback. However, the upstream issue you mentioned seems to be related to enhancing logging during teams-js initialization to better track errors, which doesn’t appear directly relevant to this particular issue. Today, I came across some additional information that might be helpful, and I’d appreciate it if you could review it. The tenant I’m testing on is using an MDCA (Microsoft Defender for Cloud Apps) session control policy. Both Mac devices and PCs are subject to session control. Although there were no changes to the code, intermittent errors have been occurring. As a precaution, I decided to disable the session control policy, and since doing so, the issue discussed in this thread has not reproduced. As an additional recommendation for your review, it might be worth testing under conditions similar to the original bug report environment but with an additional setup: an MDCA session control that blocks downloads on devices that are not hybrid Azure AD-joined. This may help to reproduce the issue. |
Thanks @lovey25 for your infirmation. Are yiu suggesting us to try reproduce the issue under MDCA session control policy? |
Of course. I’ll share the MDCA conditions under which the issue is reproduced. In Microsoft Defender for Cloud Apps, I configured the following policy under Policies > Policy Management > Conditional Access. The action for the policy is set to "Block." The purpose of this configuration is to block downloads when accessing under conditions that are not Intune compliant. Currently, only the devices using Teams Toolkit are set as an exception. Let me know if you need further details. |
Describe the bug
When creating a new app in VS Code Teams Toolkit with the Fluent UI React template, the app fails to respond upon clicking the "Authorize and call Azure Functions" button during local debug on the Edge browser. The console shows an error indicating failure to initialize the Teams SDK.
To Reproduce
Steps to reproduce the behavior:
[Tue, 05 Nov 2024 21:44:42 GMT] : @microsoft/teamsfx : Error - Initialize teams sdk failed due to not running inside Teams environment
Expected behavior
The app should authorize and call Azure Functions successfully, with no errors in the console, and perform as expected without issues.
Screenshots
VS Code Extension Information (please complete the following information):
CLI Information (please complete the following information):
The text was updated successfully, but these errors were encountered: