Forum Discussion
Jeremy_Messer
Mar 30, 2022Copper Contributor
Redirect Following Teams SSO Authentication
The primary error we’re encountering on machines that have multiple accounts configured is an error in the Auth/End process which is generating a client error “Refused to display 'https://login.micr...
Meghana-MSFT
Microsoft
Apr 05, 2022Jeremy_Messer - You have placed the code for redirection in the Authend. Please note that after executing the authentication.notifySuccess, popup gets closed, and the control goes back to the place from where the authentication method was invoked. Could you please remove the window.location.href = "/Home/Index"; from Authend, place it in Authstart instead and check once again.
Thanks,
Meghana
----------------------------------------------------------------------------------------------------------
If the response is helpful, please click "**Mark as Best Response**" and like it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.
Jeremy_Messer
Apr 08, 2022Copper Contributor
We have a public Github repo of a stripped sample of our most recent code available at https://github.com/vitNickW/TeamsAppMultiAuth if you want to test it on your end and see the problem we're encountering in a multi-user type of environment.
- Meghana-MSFTApr 08, 2022
Microsoft
Thanks for providing additional information. We will check this and get back to you.- Meghana-MSFTJan 02, 2023
Microsoft
Apologies for the long delay in responding. We are trying to setup the sample and are getting exception while trying to run the sample.
System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\xxxxxx\Downloads\TeamsAppMultiAuth-main\TeamsAppMultiAuth-main\TeamsMultiAuthIssue\src\TestTeamsAuthSSO\bin\roslyn\csc.exe'.
Can you please let us know if the sample is working fine at our end? Do we have to follow any extra steps for setting up? Are you still facing this issue?