Files
Umbraco-CMS/src/Umbraco.Core/Configuration/Models/BasicAuthSettings.cs

28 lines
740 B
C#
Raw Normal View History

2021-08-05 21:42:36 +02:00
// Copyright (c) Umbraco.
// See LICENSE for more details.
2021-08-06 11:26:31 +02:00
using System;
2021-08-05 21:42:36 +02:00
using System.ComponentModel;
using System.Net;
namespace Umbraco.Cms.Core.Configuration.Models
{
/// <summary>
/// Typed configuration options for basic authentication settings.
2021-08-05 21:42:36 +02:00
/// </summary>
[UmbracoOptions(Constants.Configuration.ConfigBasicAuth)]
public class BasicAuthSettings
{
private const bool StaticEnabled = false;
/// <summary>
/// Gets or sets a value indicating whether to keep the user logged in.
/// </summary>
[DefaultValue(StaticEnabled)]
public bool Enabled { get; set; } = StaticEnabled;
2021-08-06 11:26:31 +02:00
public string[] AllowedIPs { get; set; } = Array.Empty<string>();
2021-08-05 21:42:36 +02:00
}
}