public static string MultiTenantCookieKey(this TenantConfigurations configurations) { return(configurations.IsMultiTenantEnabled() ? configurations.Get <string>(nameof(MultiTenantCookieKey)) ?? "TenantCookie" : null); }
public DefaultRequireTwoFactorAuthenticationFactory(TenantConfigurations tenantConfigurations) { _ignoreWhileDebugging = tenantConfigurations?.Get <bool>(Constants.Ignore2faWhileDebugging) ?? false; }
public static bool IsMultiTenantEnabled(this TenantConfigurations configurations) { return(configurations.Get <bool>(Constants.MultiTenantEnabled)); }
public static int CacheMinutes(this TenantConfigurations configurations) { return(configurations.IsMultiTenantEnabled() ? configurations.Get <int>(Constants.CacheMinutes) : 0); }
public static string TenantClaimName(this TenantConfigurations configurations) { return(configurations.IsMultiTenantEnabled() ? configurations.Get <string>(Constants.TenantClaimName) ?? ContribClaimTypes.TenantId : null); }
public static bool UseTenantCode(this TenantConfigurations configurations) { return(configurations.IsMultiTenantEnabled() && configurations.Get <bool>(Constants.UseTenantCode)); }
public static bool IsTwoFactorAuthenticationRequired(this TenantConfigurations configurations) { return(configurations.Get <bool>(Constants.RequiresTwoFactorAuthentication)); }