GitHunt
DU

DubZero/AspNet.Security.OAuth.Providers

OAuth2 social authentication providers for ASP.NET Core

AspNet.Security.OAuth.Providers

AspNet.Security.OAuth.Providers is a collection of security middleware that you can use in your ASP.NET Core 1.0 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 official release can be found on NuGet and the nightly builds on MyGet.

Build status
Build status

Getting started

Adding social authentication to your application is a breeze and just requires a few lines in your Startup class:

		var optionsOK = new OKAuthenticationOptions()
		{
			ClientId = "1234366448", // Example
			ClientSecret = "8F04B86C9681B8418C3A6A0C", // Example
			ApplicationKey = "ABAFEFNLEBRBABTBA", // Example
		};

		optionsOK.Scope.Add("VALUABLE_ACCESS");

		app.UseOKAuthentication(optionsOK);

See https://github.com/aspnet-contrib/AspNet.Security.OAuth.Providers/tree/dev/samples/Mvc.Client for a complete sample using ASP.NET Core MVC and supporting multiple social providers.

Contributing

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:

Support

Need help or wanna share your thoughts? Don't hesitate to join our dedicated chat rooms:

License

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.

Languages

C#99.5%PowerShell0.2%Shell0.2%Batchfile0.1%
Created August 31, 2017
Updated February 9, 2023
DubZero/AspNet.Security.OAuth.Providers | GitHunt