Class UmbracoAuthorizedApiController
Provides a base class for authorized auto-routed Umbraco API controllers.
Namespace: Umbraco.Web.WebApi
Assembly: Umbraco.Web.dll
Syntax
public abstract class UmbracoAuthorizedApiController : UmbracoApiController, IDiscoverable
Remarks
This controller will also append a custom header to the response if the user is logged in using forms authentication which indicates the seconds remaining before their timeout expires.
Constructors
View SourceUmbracoAuthorizedApiController()
Declaration
protected UmbracoAuthorizedApiController()
UmbracoAuthorizedApiController(IGlobalSettings, IUmbracoContextAccessor, ISqlContext, ServiceContext, AppCaches, IProfilingLogger, IRuntimeState, UmbracoHelper)
Declaration
protected UmbracoAuthorizedApiController(IGlobalSettings globalSettings, IUmbracoContextAccessor umbracoContextAccessor, ISqlContext sqlContext, ServiceContext services, AppCaches appCaches, IProfilingLogger logger, IRuntimeState runtimeState, UmbracoHelper umbracoHelper)
Parameters
Type | Name | Description |
---|---|---|
IGlobalSettings | globalSettings | |
IUmbracoContextAccessor | umbracoContextAccessor | |
ISqlContext | sqlContext | |
ServiceContext | services | |
AppCaches | appCaches | |
IProfilingLogger | logger | |
IRuntimeState | runtimeState | |
UmbracoHelper | umbracoHelper |
Properties
View SourceUserManager
Gets the user manager.
Declaration
protected BackOfficeUserManager<BackOfficeIdentityUser> UserManager { get; }
Property Value
Type | Description |
---|---|
BackOfficeUserManager<BackOfficeIdentityUser> |