mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add discord as a builtin oidc provider
This commit is contained in:
parent
0d325f2c73
commit
b3a341847e
@ -24,6 +24,10 @@ namespace Kyoo.Authentication.Models.DTO;
|
||||
public class JwtProfile
|
||||
{
|
||||
public string Sub { get; set; }
|
||||
public string Uid { set => Sub = value; }
|
||||
public string Id { set => Sub = value; }
|
||||
public string Guid { set => Sub = value; }
|
||||
|
||||
public string? Name { get; set; }
|
||||
public string? Username { get; set; }
|
||||
public string? Email { get; set; }
|
||||
|
@ -106,5 +106,14 @@ public class OidcProvider
|
||||
ProfileUrl = "https://openidconnect.googleapis.com/v1/userinfo",
|
||||
Scope = "email profile",
|
||||
},
|
||||
["discord"] = new("discord")
|
||||
{
|
||||
DisplayName = "Discord",
|
||||
LogoUrl = "https://logo.clearbit.com/discord.com",
|
||||
AuthorizationUrl = "https://discord.com/oauth2/authorize",
|
||||
TokenUrl = "https://discord.com/api/oauth2/token",
|
||||
ProfileUrl = "https://discord.com/api/users/@me",
|
||||
Scope = "email+identify",
|
||||
}
|
||||
};
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user