Relative Content

Tag Archive for asp.net-mvcasp.net-coreauthenticationasp.net-identity

How to redirect unauthenticated users to another website?

I am implementing some kind of SSO using cookie sharing in an ASP.NET Core MVC application. I want unauthenticated users in my app website (e.g. app.company.com) get redirected to my SSO website in which logging in happens (e.g. sso.company.com/account/login). How can I redirect them from the app website to the sso website with a return URL?