Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions SecurityService.Models/AccountOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,38 +11,38 @@ public class AccountOptions
/// <summary>
/// The allow local login
/// </summary>
public static Boolean AllowLocalLogin = true;
public static readonly Boolean AllowLocalLogin = true;

/// <summary>
/// The allow remember login
/// </summary>
public static Boolean AllowRememberLogin = true;
public static readonly Boolean AllowRememberLogin = true;

/// <summary>
/// The automatic redirect after sign out
/// </summary>
public static Boolean AutomaticRedirectAfterSignOut = false;
public static readonly Boolean AutomaticRedirectAfterSignOut = false;

// if user uses windows auth, should we load the groups from windows
/// <summary>
/// The include windows groups
/// </summary>
public static Boolean IncludeWindowsGroups = false;
public static readonly Boolean IncludeWindowsGroups = false;

/// <summary>
/// The invalid credentials error message
/// </summary>
public static String InvalidCredentialsErrorMessage = "Invalid username or password";
public static readonly String InvalidCredentialsErrorMessage = "Invalid username or password";

/// <summary>
/// The remember me login duration
/// </summary>
public static TimeSpan RememberMeLoginDuration = TimeSpan.FromDays(30);
public static readonly TimeSpan RememberMeLoginDuration = TimeSpan.FromDays(30);

/// <summary>
/// The show logout prompt
/// </summary>
public static Boolean ShowLogoutPrompt = true;
public static readonly Boolean ShowLogoutPrompt = true;

// specify the Windows authentication scheme being used
/// <summary>
Expand Down
6 changes: 3 additions & 3 deletions SecurityService.Models/ConsentOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class ConsentOptions
/// <summary>
/// The enable offline access
/// </summary>
public static Boolean EnableOfflineAccess = true;
public static readonly Boolean EnableOfflineAccess = true;

/// <summary>
/// The invalid selection error message
Expand All @@ -26,12 +26,12 @@ public class ConsentOptions
/// <summary>
/// The offline access description
/// </summary>
public static String OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
public static readonly String OfflineAccessDescription = "Access to your applications and resources, even when you are offline";

/// <summary>
/// The offline access display name
/// </summary>
public static String OfflineAccessDisplayName = "Offline Access";
public static readonly String OfflineAccessDisplayName = "Offline Access";

#endregion
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ namespace IdentityServerHost.Pages.Logout;

public class LogoutOptions
{
public static bool ShowLogoutPrompt = true;
public static bool AutomaticRedirectAfterSignOut = false;
public static readonly bool ShowLogoutPrompt = true;
public static readonly bool AutomaticRedirectAfterSignOut = false;
}
6 changes: 3 additions & 3 deletions SecurityService.UserInterface/Pages/Ciba/ConsentOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace IdentityServerHost.Pages.Ciba;

public class ConsentOptions
{
public static bool EnableOfflineAccess = true;
public static string OfflineAccessDisplayName = "Offline Access";
public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
public static readonly bool EnableOfflineAccess = true;
public static readonly string OfflineAccessDisplayName = "Offline Access";
public static readonly string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";

public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
public static readonly string InvalidSelectionErrorMessage = "Invalid selection";
Expand Down
6 changes: 3 additions & 3 deletions SecurityService.UserInterface/Pages/Consent/ConsentOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace IdentityServerHost.Pages.Consent;

public class ConsentOptions
{
public static bool EnableOfflineAccess = true;
public static string OfflineAccessDisplayName = "Offline Access";
public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
public static readonly bool EnableOfflineAccess = true;
public static readonly string OfflineAccessDisplayName = "Offline Access";
public static readonly string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";

public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
public static readonly string InvalidSelectionErrorMessage = "Invalid selection";
Expand Down
6 changes: 3 additions & 3 deletions SecurityService.UserInterface/Pages/Device/DeviceOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ namespace IdentityServerHost.Pages.Device;

public class DeviceOptions
{
public static bool EnableOfflineAccess = true;
public static string OfflineAccessDisplayName = "Offline Access";
public static string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";
public static readonly bool EnableOfflineAccess = true;
public static readonly string OfflineAccessDisplayName = "Offline Access";
public static readonly string OfflineAccessDescription = "Access to your applications and resources, even when you are offline";

public static readonly string InvalidUserCode = "Invalid user code";
public static readonly string MustChooseOneErrorMessage = "You must pick at least one permission";
Expand Down
Loading