mirror of
https://github.com/bitwarden/server.git
synced 2025-04-05 21:18:13 -05:00

* Document online method * Feature accessors with context * Direct null assertion * Establish a constants class for flag keys
30 lines
889 B
C#
30 lines
889 B
C#
namespace Bit.Core;
|
|
|
|
public static class Constants
|
|
{
|
|
public const int BypassFiltersEventId = 12482444;
|
|
|
|
// File size limits - give 1 MB extra for cushion.
|
|
// Note: if request size limits are changed, 'client_max_body_size'
|
|
// in nginx/proxy.conf may also need to be updated accordingly.
|
|
public const long FileSize101mb = 101L * 1024L * 1024L;
|
|
public const long FileSize501mb = 501L * 1024L * 1024L;
|
|
public const string DatabaseFieldProtectorPurpose = "DatabaseFieldProtection";
|
|
public const string DatabaseFieldProtectedPrefix = "P|";
|
|
}
|
|
|
|
public static class TokenPurposes
|
|
{
|
|
public const string LinkSso = "LinkSso";
|
|
}
|
|
|
|
public static class AuthenticationSchemes
|
|
{
|
|
public const string BitwardenExternalCookieAuthenticationScheme = "bw.external";
|
|
}
|
|
|
|
public static class FeatureFlagKeys
|
|
{
|
|
public const string SecretsManager = "secrets-manager";
|
|
}
|