Class ConfigureBackOfficeCookieOptions
Used to configure Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions for the back office authentication type
Inheritance
System.Object
Namespace: Umbraco.Cms.Web.BackOffice.Security
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public class ConfigureBackOfficeCookieOptions : IConfigureNamedOptions<CookieAuthenticationOptions>, IConfigureOptions<CookieAuthenticationOptions>
Constructors
View SourceConfigureBackOfficeCookieOptions(IServiceProvider, IUmbracoContextAccessor, IOptions<SecuritySettings>, IOptions<GlobalSettings>, IHostingEnvironment, IRuntimeState, IDataProtectionProvider, IUserService, IIpResolver, ISystemClock, UmbracoRequestPaths, IBasicAuthService)
Initializes a new instance of the ConfigureBackOfficeCookieOptions class.
Declaration
public ConfigureBackOfficeCookieOptions(IServiceProvider serviceProvider, IUmbracoContextAccessor umbracoContextAccessor, IOptions<SecuritySettings> securitySettings, IOptions<GlobalSettings> globalSettings, IHostingEnvironment hostingEnvironment, IRuntimeState runtimeState, IDataProtectionProvider dataProtection, IUserService userService, IIpResolver ipResolver, ISystemClock systemClock, UmbracoRequestPaths umbracoRequestPaths, IBasicAuthService basicAuthService)
Parameters
Type | Name | Description |
---|---|---|
IServiceProvider | serviceProvider | The |
IUmbracoContextAccessor | umbracoContextAccessor | |
Microsoft.Extensions.Options.IOptions<SecuritySettings> | securitySettings | The SecuritySettings options |
Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings | The GlobalSettings options |
IHostingEnvironment | hostingEnvironment | |
IRuntimeState | runtimeState | The IRuntimeState |
Microsoft.AspNetCore.DataProtection.IDataProtectionProvider | dataProtection | The Microsoft.AspNetCore.DataProtection.IDataProtectionProvider |
IUserService | userService | The IUserService |
IIpResolver | ipResolver | The IIpResolver |
Microsoft.AspNetCore.Authentication.ISystemClock | systemClock | The Microsoft.AspNetCore.Authentication.ISystemClock |
UmbracoRequestPaths | umbracoRequestPaths | |
IBasicAuthService | basicAuthService |
Methods
View SourceConfigure(CookieAuthenticationOptions)
Declaration
public void Configure(CookieAuthenticationOptions options)
Parameters
Type | Name | Description |
---|---|---|
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions | options |
Configure(String, CookieAuthenticationOptions)
Declaration
public void Configure(string name, CookieAuthenticationOptions options)
Parameters
Type | Name | Description |
---|---|---|
System.String | name | |
Microsoft.AspNetCore.Authentication.Cookies.CookieAuthenticationOptions | options |