2019-11-05 12:54:22 +01:00
|
|
|
|
namespace Umbraco.Core
|
2017-05-12 14:49:44 +02:00
|
|
|
|
{
|
2019-11-05 13:45:42 +01:00
|
|
|
|
public static partial class Constants
|
2017-05-12 14:49:44 +02:00
|
|
|
|
{
|
|
|
|
|
|
public static class Security
|
|
|
|
|
|
{
|
2019-01-31 01:20:19 +11:00
|
|
|
|
public const string UserMembershipProviderName = "UsersMembershipProvider";
|
|
|
|
|
|
|
2018-03-02 15:48:21 +01:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Gets the identifier of the 'super' user.
|
|
|
|
|
|
/// </summary>
|
2018-05-31 23:05:35 +10:00
|
|
|
|
public const int SuperUserId = -1;
|
2017-05-12 14:49:44 +02:00
|
|
|
|
|
2018-05-31 21:21:08 +10:00
|
|
|
|
/// <summary>
|
2019-05-28 10:26:30 +02:00
|
|
|
|
/// The id for the 'unknown' user.
|
2018-05-31 21:21:08 +10:00
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
|
|
|
|
|
/// This is a user row that exists in the DB only for referential integrity but the user is never returned from any of the services
|
|
|
|
|
|
/// </remarks>
|
2018-05-31 23:05:35 +10:00
|
|
|
|
public const int UnknownUserId = 0;
|
2018-05-31 21:21:08 +10:00
|
|
|
|
|
2019-05-28 10:26:30 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The name of the 'unknown' user.
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string UnknownUserName = "SYTEM";
|
|
|
|
|
|
|
2017-08-24 21:24:14 +02:00
|
|
|
|
public const string AdminGroupAlias = "admin";
|
2020-03-24 14:03:51 +01:00
|
|
|
|
public const string EditorGroupAlias = "editor";
|
2018-03-20 18:21:37 +01:00
|
|
|
|
public const string SensitiveDataGroupAlias = "sensitiveData";
|
2017-09-15 18:22:19 +02:00
|
|
|
|
public const string TranslatorGroupAlias = "translator";
|
2020-03-24 14:03:51 +01:00
|
|
|
|
public const string WriterGroupAlias = "writer";
|
2017-09-15 18:22:19 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
public const string BackOfficeAuthenticationType = "UmbracoBackOffice";
|
|
|
|
|
|
public const string BackOfficeExternalAuthenticationType = "UmbracoExternalCookie";
|
|
|
|
|
|
public const string BackOfficeExternalCookieName = "UMB_EXTLOGIN";
|
|
|
|
|
|
public const string BackOfficeTokenAuthenticationType = "UmbracoBackOfficeToken";
|
|
|
|
|
|
public const string BackOfficeTwoFactorAuthenticationType = "UmbracoTwoFactorCookie";
|
2020-10-19 18:48:51 +11:00
|
|
|
|
public const string BackOfficeTwoFactorRememberMeAuthenticationType = "UmbracoTwoFactorRememberMeCookie";
|
2017-05-12 14:49:44 +02:00
|
|
|
|
|
2019-11-05 12:54:22 +01:00
|
|
|
|
public const string EmptyPasswordPrefix = "___UIDEMPTYPWORD__";
|
|
|
|
|
|
public const string ForceReAuthFlag = "umbraco-force-auth";
|
2017-09-23 10:08:18 +02:00
|
|
|
|
|
2017-05-12 14:49:44 +02:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The prefix used for external identity providers for their authentication type
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
/// <remarks>
|
2017-07-20 11:21:28 +02:00
|
|
|
|
/// By default we don't want to interfere with front-end external providers and their default setup, for back office the
|
2017-05-12 14:49:44 +02:00
|
|
|
|
/// providers need to be setup differently and each auth type for the back office will be prefixed with this value
|
|
|
|
|
|
/// </remarks>
|
|
|
|
|
|
public const string BackOfficeExternalAuthenticationTypePrefix = "Umbraco.";
|
|
|
|
|
|
|
|
|
|
|
|
public const string StartContentNodeIdClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/startcontentnode";
|
|
|
|
|
|
public const string StartMediaNodeIdClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/startmedianode";
|
|
|
|
|
|
public const string AllowedApplicationsClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/allowedapp";
|
|
|
|
|
|
public const string SessionIdClaimType = "http://umbraco.org/2015/02/identity/claims/backoffice/sessionid";
|
2020-06-03 12:47:40 +10:00
|
|
|
|
public const string TicketExpiresClaimType = "http://umbraco.org/2020/06/identity/claims/backoffice/ticketexpires";
|
2017-05-12 14:49:44 +02:00
|
|
|
|
|
2020-06-02 17:48:08 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// The claim type for the ASP.NET Identity security stamp
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public const string SecurityStampClaimType = "AspNet.Identity.SecurityStamp";
|
|
|
|
|
|
|
2020-05-27 13:48:26 +10:00
|
|
|
|
public const string AspNetCoreV3PasswordHashAlgorithmName = "PBKDF2.ASPNETCORE.V3";
|
|
|
|
|
|
public const string AspNetCoreV2PasswordHashAlgorithmName = "PBKDF2.ASPNETCORE.V2";
|
|
|
|
|
|
public const string AspNetUmbraco8PasswordHashAlgorithmName = "HMACSHA256";
|
2020-10-07 15:20:43 +11:00
|
|
|
|
public const string AspNetUmbraco4PasswordHashAlgorithmName = "HMACSHA1";
|
2017-05-12 14:49:44 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2017-07-20 11:21:28 +02:00
|
|
|
|
}
|