Forum Discussion
Redirect Following Teams SSO Authentication
Jeremy_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_MesserApr 08, 2022Copper ContributorWe 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, 2022Former EmployeeThanks for providing additional information. We will check this and get back to you.
- Meghana-MSFTJan 02, 2023Former Employee
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?
- Jeremy_MesserApr 05, 2022Copper ContributorI've attempted to do as you ask, but it doesn't seem to have made a difference to the behavior we're encountering? I placed the window.location.href = "/Home/Index"; command both before and after assigning the location to the authorizeEndpoint in the Authstart document to no effect.