Forum Discussion
suvi-15
May 19, 2022Brass Contributor
SSO login not working in Teams Desktop app
Hi, I Created basic Tab SSO App in which SSO login working perfectly from teams in Browser mode but it just stuck on popup window in Teams Desktop mode. Edit> i found same issue mentioned ...
suvi-15
May 23, 2022Brass Contributor
Hi,
what different approach this example used so that this white screen doesn't appear. I haven't run at my side. But curious what's difference. I followed https://docs.microsoft.com/en-us/learn/modules/msteams-sso/ documentation.
What i understood is at this step
// add extra query parameters Azure AD login request
// include scope for OpenID connect and log-in hint by using the current Microsoft Teams logged-in user
somehow this query parameters doesn't appended to url. Please let me know the resolution.
what different approach this example used so that this white screen doesn't appear. I haven't run at my side. But curious what's difference. I followed https://docs.microsoft.com/en-us/learn/modules/msteams-sso/ documentation.
What i understood is at this step
// add extra query parameters Azure AD login request
// include scope for OpenID connect and log-in hint by using the current Microsoft Teams logged-in user
somehow this query parameters doesn't appended to url. Please let me know the resolution.
Nivedipa-MSFT
Microsoft
May 25, 2022suvi-15 - Could you please clarify your issue in detail?
- Nivedipa-MSFTMay 27, 2022
Microsoft
suvi-15 - Could you please clarify which query parameters doesn't appended to url?- suvi-15May 30, 2022Brass Contributor
Hi Nivedipa-MSFT ,
I debug more and it seems as per below code
let authorizeEndpoint = "https://login.microsoftonline.com/common/oauth2/v2.0/authorize?" + toQueryString(queryParams);window.location.assign(authorizeEndpoint);may be window.location.assign method doesn't work... so i tried another method as well// // override URL to Azure AD auth endpoint to include extra query parametersconfig.displayCall = function (urlNavigate) {if (urlNavigate) {if (config.extraQueryParameters) {urlNavigate += "&" + config.extraQueryParameters;}window.location.assign(urlNavigate);}}// // loginlet authContext = new AuthenticationContext(config);authContext.clearCache();authContext.login();but none of the approach works.- Nivedipa-MSFTJun 01, 2022
Microsoft
Could you please try below sample once, if its working at your end or not?
https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/tab-sso