mirror of
https://github.com/MindWorkAI/AI-Studio.git
synced 2025-04-28 20:59:47 +00:00
Added prompt translation for auth values
This commit is contained in:
parent
d9a9accd79
commit
9b2a375f96
@ -12,4 +12,15 @@ public static class AuthExtensions
|
||||
|
||||
_ => "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,
|
||||
};
|
||||
}
|
Loading…
Reference in New Issue
Block a user