Asp.Net 身份2.0-beta是否有如何在Web API项目中使用它的示例?我看过一个带有 asp.net mvc 的示例项目,但希望看到一个带有 asp.net web API 的示例。
是的,本教程在 Web API 应用程序中使用它。
This tutorial shows how to authenticate a web API using individual user
accounts that are managed in a local database.
...This method uses ASP.NET Identity to add the user to the database.