forked from Sarah/Lieb-Website
implemented Discord OAuth2
This commit is contained in:
parent
9365e22874
commit
dbf1be4c5d
18 changed files with 195 additions and 133 deletions
12
Lieb/DiscordOAuth2/DiscordDefaults.cs
Normal file
12
Lieb/DiscordOAuth2/DiscordDefaults.cs
Normal file
|
@ -0,0 +1,12 @@
|
|||
namespace Discord.OAuth2
|
||||
{
|
||||
public static class DiscordDefaults
|
||||
{
|
||||
public const string AuthenticationScheme = "Discord";
|
||||
public const string DisplayName = "Discord";
|
||||
|
||||
public static readonly string AuthorizationEndpoint = "https://discordapp.com/api/oauth2/authorize";
|
||||
public static readonly string TokenEndpoint = "https://discordapp.com/api/oauth2/token";
|
||||
public static readonly string UserInformationEndpoint = "https://discordapp.com/api/users/@me";
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue