View Source
Class BasicAuthService
Inheritance
System.Object
Assembly: Umbraco.Core.dll
Syntax
public class BasicAuthService : IBasicAuthService
Constructors
View Source
BasicAuthService(IOptionsMonitor<BasicAuthSettings>)
Declaration
public BasicAuthService(IOptionsMonitor<BasicAuthSettings> optionsMonitor)
Parameters
View Source
BasicAuthService(IOptionsMonitor<BasicAuthSettings>, IIpAddressUtilities)
Declaration
public BasicAuthService(IOptionsMonitor<BasicAuthSettings> optionsMonitor, IIpAddressUtilities ipAddressUtilities)
Parameters
Methods
View Source
HasCorrectSharedSecret(IDictionary<String, StringValues>)
Declaration
public bool HasCorrectSharedSecret(IDictionary<string, StringValues> headers)
Parameters
Type |
Name |
Description |
IDictionary<System.String, StringValues> |
headers |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsBasicAuthEnabled()
Declaration
public bool IsBasicAuthEnabled()
Returns
Type |
Description |
System.Boolean |
|
View Source
IsIpAllowListed(IPAddress)
Declaration
public bool IsIpAllowListed(IPAddress clientIpAddress)
Parameters
Type |
Name |
Description |
System.Net.IPAddress |
clientIpAddress |
|
Returns
Type |
Description |
System.Boolean |
|
View Source
IsRedirectToLoginPageEnabled()
Declaration
public bool IsRedirectToLoginPageEnabled()
Returns
Type |
Description |
System.Boolean |
|