mirror of
https://github.com/bitwarden/server
synced 2025-12-15 15:53:59 +00:00
All feature state access through config API (#2785)
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
namespace Bit.Core;
|
||||
using System.Reflection;
|
||||
|
||||
namespace Bit.Core;
|
||||
|
||||
public static class Constants
|
||||
{
|
||||
@@ -26,4 +28,12 @@ public static class AuthenticationSchemes
|
||||
public static class FeatureFlagKeys
|
||||
{
|
||||
public const string SecretsManager = "secrets-manager";
|
||||
|
||||
public static List<string> GetAllKeys()
|
||||
{
|
||||
return typeof(FeatureFlagKeys).GetFields(BindingFlags.Public | BindingFlags.Static | BindingFlags.FlattenHierarchy)
|
||||
.Where(fi => fi.IsLiteral && !fi.IsInitOnly && fi.FieldType == typeof(string))
|
||||
.Select(x => (string)x.GetRawConstantValue())
|
||||
.ToList();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user