0

Does Asp.Net identity 2.0-beta has an example on how to use it in web api project? I have seen a sample project with asp.net mvc, but would like to see an example with asp.net web api.

1 Answer 1

1

Yes, and this tutorial uses it in a Web API application.

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.
Sign up to request clarification or add additional context in comments.

3 Comments

I see, do you know this still applies to the asp.net identity 2.0-beta, which seems a big change with the original version.
I haven't tried yet but it should do sooner or later. Here explains how to update it blogs.msdn.com/b/webdev/archive/2013/12/20/…
i see, I hope asp.net identity team could provide a sample project on asp.net identity 2.0. I see they have a sample NuGet project on asp.net mvc, but would love to see a similar project on Asp.Net web api

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.