在ASP.NET Core中使用返回URL和Cookie身份验证

时间:2019-12-16 14:43:32

标签: c# authentication asp.net-core single-sign-on asp.net-core-2.2

我在asp.net core 2.2中使用Cookie身份验证以及SSO。当用户输入我们的网站网址(例如somesite.com)时,将其重定向到SSOLogin,并在SSO回调中获取用户数据,然后将用户重定向到“首页/索引”。我想在用户输入somesite.com/employee/getemployees时将其重定向到用户输入的网址,而不是首页/索引。随着SSO的实现,用户不需要提交登录详细信息,因此我无法使用返回URL的机制。谁能建议其他方法以及如何实现?预先感谢。

enter image description here

enter image description here

0 个答案:

没有答案