overdue code cleanup (#1271)

This commit is contained in:
Jason Dove
2023-05-10 13:18:18 -05:00
committed by GitHub
parent 6142dcf153
commit 03df2a6c8a
259 changed files with 1357 additions and 1312 deletions
+8 -8
View File
@@ -2,6 +2,12 @@ namespace ErsatzTV;
public static class OidcHelper
{
public static string Authority { get; private set; }
public static string ClientId { get; private set; }
public static string ClientSecret { get; private set; }
public static string LogoutUri { get; private set; }
public static bool IsEnabled { get; private set; }
public static void Init(IConfiguration configuration)
{
Authority = configuration["OIDC:Authority"];
@@ -10,13 +16,7 @@ public static class OidcHelper
LogoutUri = configuration["OIDC:LogoutUri"];
IsEnabled = !string.IsNullOrWhiteSpace(Authority) &&
!string.IsNullOrWhiteSpace(ClientId) &&
!string.IsNullOrWhiteSpace(ClientSecret);
!string.IsNullOrWhiteSpace(ClientId) &&
!string.IsNullOrWhiteSpace(ClientSecret);
}
public static string Authority { get; private set; }
public static string ClientId { get; private set; }
public static string ClientSecret { get; private set; }
public static string LogoutUri { get; private set; }
public static bool IsEnabled { get; private set; }
}