🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
Socket

AspNet.Security.OAuth.Twitch

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

AspNet.Security.OAuth.Twitch

ASP.NET Core security middleware enabling Twitch authentication.

9.4.0
Source
NuGet
Version published
Maintainers
1
Created
Source

AspNet.Security.OAuth.Providers

AspNet.Security.OAuth.Providers is a collection of security middleware that you can use in your ASP.NET Core application to support social authentication providers like GitHub, Twitter/X 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

[!TIP] While the aspnet-contrib providers are still fully supported, developers are encouraged to use the OpenIddict client for new applications.

For information, see the Migrating to OpenIddict section.

Getting started

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

public void ConfigureServices(IServiceCollection services)
{
    services.AddAuthentication(options => { /* Authentication options */ })
            .AddGitHub(options =>
            {
                options.ClientId = "49e302895d8b09ea5656";
                options.ClientSecret = "98f1bf028608901e9df91d64ee61536fe562064b";
            });
}

public void Configure(IApplicationBuilder app)
{
    app.UseAuthentication();
    app.UseAuthorization();
}

See the /samples directory for a complete sample using ASP.NET Core MVC and supporting multiple social providers.

Contributing

AspNet.Security.OAuth.Providers is actively maintained by:

We would love it if you could help contributing to this repository.

Special thanks to our contributors:

Security policy

Please see SECURITY.md for information about reporting security issues and bugs.

Support

Need help or wanna share your thoughts? Don't hesitate to join us on Gitter or ask your question on StackOverflow:

License

This project is licensed under the Apache License. This means that you can use, modify and distribute it freely. See https://www.apache.org/licenses/LICENSE-2.0.html for more details.

Migrating to OpenIddict

The OpenIddict client and its 100+ web providers have significant advantages over the simpler OAuth 2.0-only authentication handler that is used by the aspnet-contrib providers:

  • OpenIddict fully supports OpenID Connect, which allows enforcing additional security checks for providers that implement it.
  • The OpenIddict client is stateful and provides built-in countermeasures against nonce/token replay attacks.
  • While the aspnet-contrib providers only support the OAuth 2.0 code flow, the OpenIddict providers support additional flows, including the OpenID Connect hybrid flow, the OAuth 2.0 client credentials grant, the resource owner password credentials grant or the refresh token grant.
  • The OpenIddict client supports OAuth 2.0 token introspection and OAuth 2.0 token revocation.
  • OpenIddict uses OAuth 2.0 and OpenID Connect server configuration discovery to avoid hardcoding the endpoint URIs of a provider when possible, making the OpenIddict web providers more robust and more future-proof.
  • While the aspnet-contrib providers require targeting the latest ASP.NET Core version, the OpenIddict web providers can be used in any supported version. They can also be used in ASP.NET 4.6.1+ websites and Windows/Linux desktop applications.
  • OpenIddict uses Microsoft.Extensions.Http.Polly (or Microsoft.Extensions.Http.Resilience on .NET 8+) to make backchannel HTTP communications less prone to transient network errors.

For more information on how to get started with the OpenIddict web providers, you can read:

To contribute a new OpenIddict provider, visit Contributing a new Web provider.

Providers

Links to the latest stable and nightly NuGet packages for each provider, as well as a link to their integration documentation are listed in the table below.

Documentation for the providers' settings can be found here.

If a provider you're looking for does not exist, consider making a PR to add one.

ProviderStableNightlyDocumentation
AdobeIONuGetMyGetDocumentation
AirtableNuGetMyGetDocumentation
AlipayNuGetMyGetDocumentation
AmazonNuGetMyGetDocumentation
amoCRMNuGetMyGetDocumentation
AppleNuGetMyGetDocumentation
ArcGISNuGetMyGetDocumentation
AsanaNuGetMyGetDocumentation
AtlassianNuGetMyGetDocumentation
AutodeskNuGetMyGetDocumentation
BaiduNuGetMyGetDocumentation
BasecampNuGetMyGetDocumentation
BattleNetNuGetMyGetDocumentation
BilibiliNuGetMyGetDocumentation
BitbucketNuGetMyGetDocumentation
BufferNuGetMyGetDocumentation
CalendlyNuGetMyGetDocumentation
CiscoSpark (Webex Teams)NuGetMyGetDocumentation
CoinbaseNuGetMyGetDocumentation
ContentfulNuGetMyGetDocumentation
DeviantArtNuGetMyGetDocumentation
DeezerNuGetMyGetDocumentation
DigitalOceanNuGetMyGetDocumentation
DiscordNuGetMyGetDocumentation
DocusignNuGetMyGetDocumentation
DropboxNuGetMyGetDocumentation
eBayNuGetMyGetDocumentation
EVEOnlineNuGetMyGetDocumentation
ExactOnlineNuGetMyGetDocumentation
FeishuNuGetMyGetDocumentation
FitbitNuGetMyGetDocumentation
FoursquareNuGetMyGetDocumentation
GitCodeNuGetMyGetDocumentation
GiteeNuGetMyGetDocumentation
GitHubNuGetMyGetDocumentation
GitLabNuGetMyGetDocumentation
HarvestNuGetMyGetDocumentation
HealthGraph (Runkeeper)NuGetMyGetN/A
HuaweiNuGetMyGetDocumentation
HubSpotNuGetMyGetDocumentation
ImgurNuGetMyGetDocumentation
InstagramNuGetMyGetDocumentation
JumpCloudNuGetMyGetDocumentation
KakaoTalkNuGetMyGetDocumentation
KeycloakNuGetMyGetDocumentation
KOOKNuGetMyGetDocumentation
KrogerNuGetMyGetDocumentation
LichessNuGetMyGetDocumentation
LineNuGetMyGetDocumentation
LinearNuGetMyGetDocumentation
LinkedInNuGetMyGetDocumentation
MailChimpNuGetMyGetDocumentation
MailRuNuGetMyGetDocumentation
MiroNuGetMyGetDocumentation
MixcloudNuGetMyGetDocumentation
MoodleNuGetMyGetDocumentation
MyobNuGetMyGetDocumentation
NaverNuGetMyGetDocumentation
NetEaseNuGetMyGetDocumentation
NextcloudNuGetMyGetDocumentation User EndPoint Documentation
NotionNuGetMyGetDocumentation
OdnoklassnikiNuGetMyGetDocumentation
OktaNuGetMyGetDocumentation
OnshapeNuGetMyGetN/A
PatreonNuGetMyGetDocumentation
PaypalNuGetMyGetDocumentation
PingOneNuGetMyGetDocumentation
PipedriveNuGetMyGetDocumentation
QQNuGetMyGetDocumentation
QuickBooksNuGetMyGetDocumentation
RedditNuGetMyGetDocumentation
SalesforceNuGetMyGetDocumentation
ServiceChannelNuGetMyGetDocumentation
ShopifyNuGetMyGetDocumentation
SlackNuGetMyGetDocumentation
SmartsheetNuGetMyGetDocumentation
SnapchatNuGetMyGetDocumentation
SoundCloudNuGetMyGetDocumentation
SpotifyNuGetMyGetDocumentation
Stack ExchangeNuGetMyGetDocumentation
StravaNuGetMyGetDocumentation
StreamlabsNuGetMyGetDocumentation
SuperOfficeNuGetMyGetDocumentation
TraktNuGetMyGetDocumentation
TrovoNuGetMyGetDocumentation
TwitchNuGetMyGetDocumentation
TwitterNuGetMyGetDocumentation
TypeformNuGetMyGetDocumentation
UntappdNuGetMyGetDocumentation
VimeoNuGetMyGetDocumentation
Visual Studio (Azure DevOps)NuGetMyGetDocumentation
VK IDNuGetMyGetDocumentation
VkontakteNuGetMyGetDocumentation
WebflowNuGetMyGetDocumentation
WeiboNuGetMyGetDocumentation
Weixin (WeChat)NuGetMyGetDocumentation
WordPressNuGetMyGetDocumentation
WorkWeixin (WeCom)NuGetMyGetDocumentation
XeroNuGetMyGetDocumentation
XummNuGetMyGetDocumentation
YahooNuGetMyGetDocumentation
YammerNuGetMyGetDocumentation
YandexNuGetMyGetDocumentation
ZaloNuGetMyGetDocumentation
ZendeskNuGetMyGetDocumentation
ZohoNuGetMyGetDocumentation
ZoomNuGetMyGetDocumentation

Keywords

aspnetcore

FAQs

Package last updated on 21 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts