AspNet.Security.OAuth.Providers is a collection of security middleware that you can use in your ASP.NET 5 application to support social authentication providers like GitHub, Foursquare or Dropbox. It is directly inspired by Jerrie Pelser's initiative, Owin.Security.Providers.
The latest nightly builds can be found here: https://www.myget.org/F/aspnet-contrib/
The dev branch relies on the latest version of DNX and ASP.NET 5, that can be found on MyGet: https://www.myget.org/gallery/aspnetvnext.
Make sure to always run the latest DNX version and the corresponding ASP.NET 5 packages by running dnvm upgrade -u
and dnu restore
.
Adding social authentication to your application is a breeze and just requires a few lines in your Startup
class:
app.UseGitHubAuthentication(options => {
options.ClientId = "49e302895d8b09ea5656";
options.ClientSecret = "98f1bf028608901e9df91d64ee61536fe562064b";
});
See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/samples/Mvc.Client for a complete sample using MVC 6 and supporting multiple social providers.
AspNet.Security.OAuth.Providers is actively maintained by Kévin Chalet (@PinpointTownes) and Jerrie Pelser (@jerriepelser).
We would love it if you could help contributing to this repository. Please look at CONTRIBUTING.md.
Special thanks to our contributors:
- Adam Reisinger (https://github.com/Res42)
- Albireo (https://github.com/kappa7194)
- Jerrie Pelser (https://github.com/jerriep)
- Kévin Chalet (https://github.com/PinpointTownes)
- Michael Knowles (https://github.com/mjknowles)
- Tathagata Chakraborty (https://github.com/tatx)
- Tommy Parnell (https://github.com/tparnell8)
Need help or wanna share your thoughts? Don't hesitate to join our dedicated chat rooms:
- JabbR: https://jabbr.net/#/rooms/aspnet-contrib
- Gitter: https://gitter.im/aspnet-contrib/AspNet.Security.OAuth.Providers
This project is licensed under the Apache License. This means that you can use, modify and distribute it freely. See http://www.apache.org/licenses/LICENSE-2.0.html for more details.