/Discord.OAuth2

ASP.Net Core middleware that enables an application to support Discord's OAuth 2.0 authentication workflow.

Primary LanguageC#MIT LicenseMIT

Discord.OAuth2

NuGet MyGet Build status

ASP.Net Core middleware that enables an application to support Discord's OAuth 2.0 authentication workflow.

Based on ASP.Net Core Facebook OAuth

Usage

services.AddAuthentication()
    .AddDiscord(x =>
    {
        x.AppId = Configuration["Discord:AppId"];
        x.AppSecret = Configuration["Discord:AppSecret"];
        x.Scope.Add("guilds");
    });