SocialNinja is a boilerplate solution, built to demonstrate social authentication and how we can handle the user data obtained as a result of these logins in our application using ASP.NET Core (.NET 6)
Social Login providers implement user authentication by means of OAuth2 protocol. OAuth2 or OpenAuthentication2 is an opensource authentication protocol, which facilitates authenticating a user over an authentication provider for a requesting party and then securely exchanging user identity, without having the need for user credentials. ASP.NET Core provides seamless integration of this by means of its built-in Authorization middleware and on top of it provides Identity middlewares exclusive for popular Identity Providers such as Google, Facebook, Twitter, GitHub etc.
- ASP.NET Core (.NET 6)
- Entity Framework Core (EFCore 6)
- MS Authentication Plugin for Google
- MS Authentication Plugin for Facebook
- SQLite
This boilerplate is a perfect starter for developers looking to implement Social Logins integration. The solution offers the following:
- Onion Architecture with defined layers for API, Persistence, Contracts and Migrations
- Implemented code for UnitOfWork with Repository
- Preconfigured Entity Framework Core migrations with SQLite
- Ready to use settings for Google and Facebook logins
- Ready to use and customizable Login page
To get started, follow the below steps:
- Install .NET 6 SDK
- Clone the Solution into your Local Directory
- Navigate to the SocialNinja.Web directory
- Update the ClientId/ClientSecret for Google, Facebook in appsettings.json
- Run the solution
Read the complete article to learn more:
If you face any issues or would like to drop a suggestion,
Leave a Star if you find the solution useful. If you find the article helpful, support me by:
For more detailed articles and how-to guides, visit https://referbruv.com