Search code examples
mongodb.net-coreasp.net-core-mvcasp.net-core-webapimongodb-.net-driver

OAuth using dotnet core and mongo DB?


I'm new to mongo DB and for most documentation I am referring to the official guides

At this point I has been able to connect my Web Api solution using dotnet core to the mongo Cloud. Using postman I can fetch, insert, delete some collections. So far so good.

Now, the next steps I would like to do is to implement a login page and store the user information on mongo. But I am not sure the are some best practices, frameworks, or any other helpful information on how to achieve that using mongo with Web Api dotnet core. Will OAuth be a good fit for this? Sorry if this is a silly question just trying to connect the dots.

Thanks in advance


Solution

  • Have it working, so closing this thread.

    I started taking a look at the proposed link mongo web api started template but ended up with this one ASP.NET Core 3.1 - JWT Authentication Tutorial with Example API. the last one was talking about more on what I exactly looking for. But I would say both are great resources.