如何与.NET Core 6中的.NET框架共享Owin令牌6
我有一个.NET框架应用程序已经在生产中,该应用程序使用Owin Oauth来验证用户,我构建了一个.NET Core 6应用程序,该应用程序使用相同的数据库,但我想向其添加AUTH,我想知道如何共享从我的.NET框架应用程序到我的.NET Core 6应用程序的访问令牌。我的.NET框架利用了Owin身份验证,我们还可以将cookie和一个访问令牌,我如何在.NET Core 6上使用相同的项目,我尝试在.NET Core 6应用程序上进行简单的身份身份验证但这更改了Aspnetusers表上的密码哈希,然后我再也无法从.NET Framework应用程序登录
I have a .Net Framework application which is already in production that uses owin oauth to authenticate users, I have built a .Net core 6 application which uses the same database but I want to add auth to it, I was wondering how would I share the access token from my .Net Framework application to my .Net core 6 application. My .Net framework makes use of OWIN authentication and we get a cookie back as well as an access token, how would I use the same items on .Net core 6, I have tried making a simple Identity Authentication on my .Net core 6 application but that changes the password hash on the the ASPNetUsers table and then I cant login from my .Net Framework application anymore
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
据我所知,ASP.NET Core还支持OWIN身份验证,您可以在ASP.NET Core应用程序中使用OAuth的设置。例如,ASP.NET和ASP.NET核心都支持JWT身份验证,如果令牌的发行者和secect或其他设置相同,我们可以使用访问令牌。
As far as I know, asp.net core also support OWIN authentication, you could use the oauth's settings inside the asp.net core application. For example, both the Asp.net and asp.net core support the JWT authentication, if the token's issuer and secect or other settings is the same, we could use access token.