mirror of
https://github.com/Caraxi/mare.server.git
synced 2025-12-13 19:14:16 +01:00
add oauth or something
This commit is contained in:
parent
fe0ee4ed1e
commit
2554fa6d0e
16 changed files with 560 additions and 193 deletions
|
|
@ -9,7 +9,9 @@ public class AuthServiceConfiguration : MareConfigurationBase
|
|||
public int FailedAuthForTempBan { get; set; } = 5;
|
||||
public int TempBanDurationInMinutes { get; set; } = 5;
|
||||
public List<string> WhitelistedIps { get; set; } = new();
|
||||
|
||||
public Uri PublicOAuthBaseUri { get; set; } = null;
|
||||
public string? DiscordOAuthClientSecret { get; set; } = null;
|
||||
public string? DiscordOAuthClientId { get; set; } = null;
|
||||
public override string ToString()
|
||||
{
|
||||
StringBuilder sb = new();
|
||||
|
|
|
|||
|
|
@ -8,4 +8,7 @@ public static class MareClaimTypes
|
|||
public const string Internal = "internal";
|
||||
public const string Expires = "expiration_date";
|
||||
public const string Continent = "continent";
|
||||
public const string DiscordUser = "discord_user";
|
||||
public const string DiscordId = "discord_user_id";
|
||||
public const string OAuthLoginToken = "oauth_login_token";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue