Reputation: 399
So here's my situation:
I'm building a web application using .NET Core and React.js. I'm asking what would be the best authentification methods/strategies for my users. In the past, I used Identity in MVC.NET apps to generate Identity table and handle auth and roles, but this time I also want to use a NoSQL database type for hight scalability purpose.
Any thought on the strategy I should use? Is using a polyglot persistence strategy is the way to go? Identity on SQL server and other data on NoSQL?
Upvotes: 3
Views: 1145
Reputation: 399
So I gave it some thought and I think I'll go with Identity as a service, with something la IdentityServer4 or Azure AD for B2C. This clearly divides both concerns in 2 different projects/services. Will see how it goes.
Upvotes: 1
Reputation: 2580
The Simplest way is to use and extend an existing solution for ASP.net Membership provider on cosmos db , one of them can be found here: https://github.com/tracker086/DocumentDB.AspNet.Identity
And here you can find a step by step tutorial how to connect everything together: https://varunrathore.wordpress.com/2016/04/27/asp-net-identity-using-azure-documentdb/
Upvotes: 2