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 | The |
Microsoft.Extensions.Options.IOptions<SecuritySettings> | securitySettings | The |
Microsoft.Extensions.Options.IOptions<GlobalSettings> | globalSettings | The |
IHostingEnvironment | hostingEnvironment | The |
IRuntimeState | runtimeState | The |
Microsoft.AspNetCore.DataProtection.IDataProtectionProvider | dataProtection | The Microsoft.AspNetCore.DataProtection.IDataProtectionProvider |
IUserService | userService | The |
IIpResolver | ipResolver | The |
Microsoft.AspNetCore.Authentication.ISystemClock | systemClock | The Microsoft.AspNetCore.Authentication.ISystemClock |
UmbracoRequestPaths | umbracoRequestPaths | The |
IBasicAuthService | basicAuthService | The |
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 |