View Source
Class BackOfficeController
Represents a controller user to render out the default back office view and JS results.
Inheritance
System.Object
Assembly: Umbraco.Web.dll
Syntax
public class BackOfficeController : UmbracoController
Constructors
View Source
BackOfficeController(ManifestParser, UmbracoFeatures, IGlobalSettings, IUmbracoContextAccessor, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
public BackOfficeController(ManifestParser manifestParser, UmbracoFeatures features, IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ServiceContext services, AppCaches appCaches, IProfilingLogger profilingLogger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Fields
View Source
XsrfKey
Declaration
public const string XsrfKey = "XsrfId"
Field Value
Type |
Description |
System.String |
|
Properties
View Source
AuthenticationManager
Declaration
protected IAuthenticationManager AuthenticationManager { get; }
Property Value
Type |
Description |
IAuthenticationManager |
|
View Source
SignInManager
Declaration
protected BackOfficeSignInManager SignInManager { get; }
Property Value
View Source
UserManager
Declaration
protected BackOfficeUserManager<BackOfficeIdentityUser> UserManager { get; }
Property Value
Methods
View Source
Application()
Returns the JavaScript main file including all references found in manifests
Declaration
public JavaScriptResult Application()
Returns
Type |
Description |
JavaScriptResult |
|
View Source
AuthorizeUpgrade()
This Action is used by the installer when an upgrade is detected but the admin user is not logged in. We need to
ensure the user is authenticated before the install takes place so we redirect here to show the standard login screen.
Declaration
public async Task<ActionResult> AuthorizeUpgrade()
Returns
Type |
Description |
System.Threading.Tasks.Task<ActionResult> |
|
View Source
Default()
Declaration
public async Task<ActionResult> Default()
Returns
Type |
Description |
System.Threading.Tasks.Task<ActionResult> |
|
View Source
ExternalLinkLoginCallback()
Declaration
public async Task<ActionResult> ExternalLinkLoginCallback()
Returns
Type |
Description |
System.Threading.Tasks.Task<ActionResult> |
|
View Source
ExternalLogin(String, String)
Declaration
public ActionResult ExternalLogin(string provider, string redirectUrl = null)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
System.String |
redirectUrl |
|
Returns
Type |
Description |
ActionResult |
|
View Source
GetGridConfig()
Declaration
public JsonNetResult GetGridConfig()
Returns
View Source
GetManifestAssetList()
Returns a js array of all of the manifest assets
Declaration
public JsonNetResult GetManifestAssetList()
Returns
View Source
LinkLogin(String)
Declaration
public ActionResult LinkLogin(string provider)
Parameters
Type |
Name |
Description |
System.String |
provider |
|
Returns
Type |
Description |
ActionResult |
|
View Source
LocalizedText(String)
Get the json localized text for a given culture or the culture for the current user
Declaration
public JsonNetResult LocalizedText(string culture = null)
Parameters
Type |
Name |
Description |
System.String |
culture |
|
Returns
View Source
ServerVariables()
Returns the JavaScript object representing the static server variables javascript object
Declaration
public JavaScriptResult ServerVariables()
Returns
Type |
Description |
JavaScriptResult |
|
View Source
ValidatePasswordResetCode(Int32, String)
Declaration
public async Task<ActionResult> ValidatePasswordResetCode(int userId, string resetCode)
Parameters
Type |
Name |
Description |
System.Int32 |
userId |
|
System.String |
resetCode |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ActionResult> |
|
View Source
VerifyInvite(String)
Declaration
public async Task<ActionResult> VerifyInvite(string invite)
Parameters
Type |
Name |
Description |
System.String |
invite |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<ActionResult> |
|