mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2026-11-11 06:08:19 +00:00
Moved all extension methods into extension blocks (#1155)
This commit is contained in:
1 parent
acc7d09fa2
commit
c0a75f39ac
138 files changed
+5884
-4954
No files matched your search
@@ -7,13 +7,16 @@ public static class AuthMethodsV1Extensions
|
||||
{
|
||||
private static string TB(string fallbackEN) => I18N.I.T(fallbackEN, typeof(AuthMethodsV1Extensions).Namespace, nameof(AuthMethodsV1Extensions));
|
||||
|
||||
public static string DisplayName(this AuthMethod authMethod) => authMethod switch
|
||||
extension(AuthMethod authMethod)
|
||||
{
|
||||
AuthMethod.NONE => TB("None"),
|
||||
AuthMethod.USERNAME_PASSWORD => TB("Username & Password"),
|
||||
AuthMethod.KERBEROS => TB("SSO (Kerberos)"),
|
||||
AuthMethod.TOKEN => TB("Access Token"),
|
||||
public string DisplayName() => authMethod switch
|
||||
{
|
||||
AuthMethod.NONE => TB("None"),
|
||||
AuthMethod.USERNAME_PASSWORD => TB("Username & Password"),
|
||||
AuthMethod.KERBEROS => TB("SSO (Kerberos)"),
|
||||
AuthMethod.TOKEN => TB("Access Token"),
|
||||
|
||||
_ => TB("Unknown authentication method"),
|
||||
};
|
||||
_ => TB("Unknown authentication method"),
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user