Starting updating mooncore dependency usage
This commit is contained in:
@@ -29,34 +29,18 @@ public class AppConfiguration
|
||||
|
||||
public class AuthenticationConfig
|
||||
{
|
||||
public string AccessSecret { get; set; } = Formatter.GenerateString(32);
|
||||
public string RefreshSecret { get; set; } = Formatter.GenerateString(32);
|
||||
public int AccessDuration { get; set; } = 60;
|
||||
public int RefreshDuration { get; set; } = 3600;
|
||||
|
||||
public string Secret { get; set; } = Formatter.GenerateString(32);
|
||||
public int TokenDuration { get; set; } = 3600;
|
||||
|
||||
public OAuth2Data OAuth2 { get; set; } = new();
|
||||
public bool UseLocalOAuth2 { get; set; } = true;
|
||||
|
||||
public LocalOAuth2Data LocalOAuth2 { get; set; } = new();
|
||||
|
||||
public class LocalOAuth2Data
|
||||
{
|
||||
public string AccessSecret { get; set; } = Formatter.GenerateString(32);
|
||||
public string RefreshSecret { get; set; } = Formatter.GenerateString(32);
|
||||
public string CodeSecret { get; set; } = Formatter.GenerateString(32);
|
||||
|
||||
public int AccessTokenDuration { get; set; } = 60;
|
||||
public int RefreshTokenDuration { get; set; } = 3600;
|
||||
}
|
||||
|
||||
public class OAuth2Data
|
||||
{
|
||||
public string Secret { get; set; } = Formatter.GenerateString(32);
|
||||
public string ClientId { get; set; } = Formatter.GenerateString(8);
|
||||
public string ClientSecret { get; set; } = Formatter.GenerateString(32);
|
||||
public string? AuthorizationUri { get; set; }
|
||||
public string? AuthorizationEndpoint { get; set; }
|
||||
public string? AuthorizationRedirect { get; set; }
|
||||
public string? AccessEndpoint { get; set; }
|
||||
public string? RefreshEndpoint { get; set; }
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user