Added prompt translation for auth values

This commit is contained in:
Thorsten Sommer 2024-12-31 19:32:24 +01:00
parent d9a9accd79
commit 9b2a375f96
Signed by: tsommer
GPG Key ID: 371BBA77A02C0108

View File

@ -12,4 +12,15 @@ public static class AuthExtensions
_ => "Unknown login method" _ => "Unknown login method"
}; };
public static string ToPrompt(this Auth auth) => auth switch
{
Auth.NONE => "No login is necessary, the data source is public.",
Auth.KERBEROS => "Login by single-sign-on (SSO) using Kerberos.",
Auth.USERNAME_PASSWORD => "Login by username and password.",
Auth.TOKEN => "Login by static token per user.",
_ => string.Empty,
};
} }