diff --git a/SecurityService.Models/AccountOptions.cs b/SecurityService.Models/AccountOptions.cs
index 02486fdb..87500a19 100644
--- a/SecurityService.Models/AccountOptions.cs
+++ b/SecurityService.Models/AccountOptions.cs
@@ -11,38 +11,38 @@ public class AccountOptions
///
/// The allow local login
///
- public static Boolean AllowLocalLogin = true;
+ public static readonly Boolean AllowLocalLogin = true;
///
/// The allow remember login
///
- public static Boolean AllowRememberLogin = true;
+ public static readonly Boolean AllowRememberLogin = true;
///
/// The automatic redirect after sign out
///
- public static Boolean AutomaticRedirectAfterSignOut = false;
+ public static readonly Boolean AutomaticRedirectAfterSignOut = false;
// if user uses windows auth, should we load the groups from windows
///
/// The include windows groups
///
- public static Boolean IncludeWindowsGroups = false;
+ public static readonly Boolean IncludeWindowsGroups = false;
///
/// The invalid credentials error message
///
- public static String InvalidCredentialsErrorMessage = "Invalid username or password";
+ public static readonly String InvalidCredentialsErrorMessage = "Invalid username or password";
///
/// The remember me login duration
///
- public static TimeSpan RememberMeLoginDuration = TimeSpan.FromDays(30);
+ public static readonly TimeSpan RememberMeLoginDuration = TimeSpan.FromDays(30);
///
/// The show logout prompt
///
- public static Boolean ShowLogoutPrompt = true;
+ public static readonly Boolean ShowLogoutPrompt = true;
// specify the Windows authentication scheme being used
///
diff --git a/SecurityService.Models/ConsentOptions.cs b/SecurityService.Models/ConsentOptions.cs
index ff40014f..fbad4bcb 100644
--- a/SecurityService.Models/ConsentOptions.cs
+++ b/SecurityService.Models/ConsentOptions.cs
@@ -11,7 +11,7 @@ public class ConsentOptions
///
/// The enable offline access
///
- public static Boolean EnableOfflineAccess = true;
+ public static readonly Boolean EnableOfflineAccess = true;
///
/// The invalid selection error message
@@ -26,12 +26,12 @@ public class ConsentOptions
///
/// The offline access description
///
- 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";
///
/// The offline access display name
///
- public static String OfflineAccessDisplayName = "Offline Access";
+ public static readonly String OfflineAccessDisplayName = "Offline Access";
#endregion
}
diff --git a/SecurityService.UserInterface/Pages/Account/Logout/LogoutOptions.cs b/SecurityService.UserInterface/Pages/Account/Logout/LogoutOptions.cs
index d93a8521..40e357dc 100644
--- a/SecurityService.UserInterface/Pages/Account/Logout/LogoutOptions.cs
+++ b/SecurityService.UserInterface/Pages/Account/Logout/LogoutOptions.cs
@@ -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;
}
\ No newline at end of file
diff --git a/SecurityService.UserInterface/Pages/Ciba/ConsentOptions.cs b/SecurityService.UserInterface/Pages/Ciba/ConsentOptions.cs
index adca0ebf..169b6ee0 100644
--- a/SecurityService.UserInterface/Pages/Ciba/ConsentOptions.cs
+++ b/SecurityService.UserInterface/Pages/Ciba/ConsentOptions.cs
@@ -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";
diff --git a/SecurityService.UserInterface/Pages/Consent/ConsentOptions.cs b/SecurityService.UserInterface/Pages/Consent/ConsentOptions.cs
index ad78a1f8..75608dc2 100644
--- a/SecurityService.UserInterface/Pages/Consent/ConsentOptions.cs
+++ b/SecurityService.UserInterface/Pages/Consent/ConsentOptions.cs
@@ -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";
diff --git a/SecurityService.UserInterface/Pages/Device/DeviceOptions.cs b/SecurityService.UserInterface/Pages/Device/DeviceOptions.cs
index 421ea7aa..c93b3024 100644
--- a/SecurityService.UserInterface/Pages/Device/DeviceOptions.cs
+++ b/SecurityService.UserInterface/Pages/Device/DeviceOptions.cs
@@ -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";