* Add new BackOfficeApi project * Add swagger * Add and route new install controller * Add new install steps * Add Setup endpoint * Add missing RequiresExecution methods * Fix nullability of databasemodel * Move user information to separate model * Remove ping method * Add view models install data * Move mapping folder * Move ViewModels * Add settings endpoint * Remove unused binderprovider * Postfix RequiresExecution with async * Update NewDatabaseUpgradeStep to not depend on install step * Add installstep collection * Move registration into backoffice project * Add InstallService * Use service in controller * Add upgrade to install service and use in controller * Correctly check is database is configured * Reorganize * Reorganize into new core and infrastructure * Rename steps * Rename BackofficeApi to MangementApi * Make install step an interface instead of abstract class * Rename InstallStep to create CreateUserStep * Move restart runtime and sign in user into install steps * Move install service into new core project * Map controllers in composer * Restrict access to installcontroller based on runtime level * Use FireAndForget when logging install * Use actionresult instead of iactionresult * Set new projects as not packable * Link to backoffice in 201 response when installed * Register installations * Add custom backoffice routing template token * Move umbraco path trimming out of application convention * Make it easier to route to backoffice api * Make swagger version aware and move behind backoffice path * Obsolete old install classes * Move maps into single file This is all mappint to/from viewmodels in some manner * Remove usage of InstallSetupResult * Move new projects to the src folder * Remove InstallationType from IInstallStep This upgrade steps should implement their own IUpgradeStep interface * Remove upgrade from service and controller This should be its own service and controller * Add xml docs * Remove internals visible to * Disable package validation for new projects Quite the gotcha here, if the projects are brand new, there is no nuget packages to compare with, this causes the build to fail. * Add ValidateDatabase endpoint * Remove project references to new backoffice We don't actually want to depend on this yet, it's just needed for testing/development * Obsolete installationtype * Add DatabaseSettingsFactory tests * Add InstallServiceTests * Fix InstallServiceTests * Test RequireRuntimeLevelAttribute * Implement new backoffice upgrader (#12818) * Add UpgradeSettingsModel and viewmodel * Add upgrade/settings endpoint * Implement upgrade steps * Add upgrade step collection * Add UpgradeService * Add authorize endpoint to UpgradeController * Fix interface * Add upgrade service tests * Remove runtime check in databaseinstallstep * Move RequireRuntimeLevel to controller * Add a readme to the new backoffice part * BackOffice not Backoffice * Add conditional project references * Fixes based on review * Fix up * Move running of steps into its own method in UpgradeService * Make services transient * More fixup * Log exceptions when running steps
81 lines
3.0 KiB
C#
81 lines
3.0 KiB
C#
namespace Umbraco.Cms.Core;
|
|
|
|
public static partial class Constants
|
|
{
|
|
/// <summary>
|
|
/// Defines the identifiers for Umbraco system nodes.
|
|
/// </summary>
|
|
public static class Web
|
|
{
|
|
/// <summary>
|
|
/// The preview cookie name
|
|
/// </summary>
|
|
public const string PreviewCookieName = "UMB_PREVIEW";
|
|
|
|
/// <summary>
|
|
/// Client-side cookie that determines whether the user has accepted to be in Preview Mode when visiting the website.
|
|
/// </summary>
|
|
public const string AcceptPreviewCookieName = "UMB-WEBSITE-PREVIEW-ACCEPT";
|
|
|
|
public const string InstallerCookieName = "umb_installId";
|
|
|
|
/// <summary>
|
|
/// The cookie name that is used to store the validation value
|
|
/// </summary>
|
|
public const string CsrfValidationCookieName = "UMB-XSRF-V";
|
|
|
|
/// <summary>
|
|
/// The cookie name that is set for angular to use to pass in to the header value for "X-UMB-XSRF-TOKEN"
|
|
/// </summary>
|
|
public const string AngularCookieName = "UMB-XSRF-TOKEN";
|
|
|
|
/// <summary>
|
|
/// The header name that angular uses to pass in the token to validate the cookie
|
|
/// </summary>
|
|
public const string AngularHeadername = "X-UMB-XSRF-TOKEN";
|
|
|
|
/// <summary>
|
|
/// The route name of the page shown when Umbraco has no published content.
|
|
/// </summary>
|
|
public const string NoContentRouteName = "umbraco-no-content";
|
|
|
|
/// <summary>
|
|
/// The default authentication type used for remembering that 2FA is not needed on next login
|
|
/// </summary>
|
|
public const string TwoFactorRememberBrowserCookie = "TwoFactorRememberBrowser";
|
|
|
|
public static class Mvc
|
|
{
|
|
public const string InstallArea = "UmbracoInstall";
|
|
|
|
public const string
|
|
BackOfficePathSegment = "BackOffice"; // The path segment prefix for all back office controllers
|
|
|
|
public const string BackOfficeArea = "UmbracoBackOffice"; // Used for area routes of non-api controllers
|
|
public const string BackOfficeApiArea = "UmbracoApi"; // Same name as v8 so all routing remains the same
|
|
public const string BackOfficeTreeArea = "UmbracoTrees"; // Same name as v8 so all routing remains the same
|
|
}
|
|
|
|
public static class Routing
|
|
{
|
|
public const string ControllerToken = "controller";
|
|
public const string ActionToken = "action";
|
|
public const string AreaToken = "area";
|
|
}
|
|
|
|
public static class AttributeRouting
|
|
{
|
|
public const string BackOfficeToken = "umbracoBackOffice";
|
|
}
|
|
|
|
public static class EmailTypes
|
|
{
|
|
public const string HealthCheck = "HealthCheck";
|
|
public const string Notification = "Notification";
|
|
public const string PasswordReset = "PasswordReset";
|
|
public const string TwoFactorAuth = "2FA";
|
|
public const string UserInvite = "UserInvite";
|
|
}
|
|
}
|
|
}
|