# How to implement Auth0 in .NET MVC with web api?

**URL:** <https://community.auth0.com/t/how-to-implement-auth0-in-net-mvc-with-web-api/72177>\
**Category:** Get Help\
**Tags:** api, login, auth0\
**Created:** [October 27, 2021, 2:42pm UTC](https://community.auth0.com/t/how-to-implement-auth0-in-net-mvc-with-web-api/72177 "2021-10-27T14:42:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vikasjklalwani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/vikasjklalwani/32/32628_2.png) [@vikasjklalwani](https://community.auth0.com/u/vikasjklalwani)\
**Post date:** [October 27, 2021, 2:42pm UTC](https://community.auth0.com/t/how-to-implement-auth0-in-net-mvc-with-web-api/72177/1 "2021-10-27T14:42:57Z")

</div>

Hello Guys, I am looking forward to use Auth0 with currently developed web api for login.

I am using web api which is .NET framework 4.6 based and is currently using basic [web api token based authentication](https://qawithexperts.com/article/api/token-based-authentication-in-c-using-web-api/231).

I would like to know, can i add auth0 side by side, or I would have to remove current web api based token based authentication and then use autho as a new?

Thanks

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [October 27, 2021, 6:11pm UTC](https://community.auth0.com/t/how-to-implement-auth0-in-net-mvc-with-web-api/72177/3 "2021-10-27T18:11:29Z")

</div>

Hi @vikasjklalwani,

Welcome to the Auth0 Community!

It doesn’t look like there is a direct integration from that example, (it looks like you wrote it, great work!), but it is quite similar and should be possible to translate some of the general concepts.

Our [Auth0 ASP.NET (OWIN) SDK Quickstarts: Login](https://auth0.com/docs/quickstart/webapp/aspnet-owin) example uses similar libraries, although it doesn’t use the resource owner password grant, although it [is available](https://auth0.com/docs/authorization/flows/resource-owner-password-flow).

Hopefully that helps!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [December 23, 2021, 5:03pm UTC](https://community.auth0.com/t/how-to-implement-auth0-in-net-mvc-with-web-api/72177/4 "2021-12-23T17:03:02Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
