简体   繁体   English

自定义Asp.net身份的自定义数据库

[英]Custom Asp.net Identity for custom database

I am using WebApi for the first time and I want to implement token authentication for my existing users stored in the database, but I have been unable to find any good solutions to do this. 我是第一次使用WebApi,我想对存储在数据库中的现有用户实施令牌身份验证,但是我一直找不到任何好的解决方案来做到这一点。 I already referred to many solutions found on Google, but I have not been able to understand what mistake I am making when I implement them. 我已经提到过许多在Google上找到的解决方案,但是当我实现它们时,我还无法理解自己犯了什么错误。

Please, if someone could give any source sample, that would be a great help. 请,如果有人可以提供任何源样本,那将是很大的帮助。

I have had success using this approach to generating tokens link . 我已经成功地使用这种方法生成令牌链接 There are 5 parts to the article and helps with understanding some of the concepts of token generation, reissuing tokens, enabling CORS, and using OAuth2. 本文分为5部分,可帮助您了解令牌生成,重新发行令牌,启用CORS以及使用OAuth2的一些概念。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM