2024-12-14 18:48:47 +00:00
|
|
|
namespace AIStudio.Assistants.ERI;
|
2024-12-04 20:22:39 +00:00
|
|
|
|
|
|
|
public static class AuthExtensions
|
|
|
|
{
|
|
|
|
public static string Name(this Auth auth) => auth switch
|
|
|
|
{
|
|
|
|
Auth.NONE => "No login necessary: useful for public data sources",
|
|
|
|
|
|
|
|
Auth.KERBEROS => "Login by single-sign-on (SSO) using Kerberos: very complex to implement and to operate, useful for many users",
|
|
|
|
Auth.USERNAME_PASSWORD => "Login by username and password: simple to implement and to operate, useful for few users; easy to use for users",
|
|
|
|
Auth.TOKEN => "Login by token: simple to implement and to operate, useful for few users; unusual for many users",
|
|
|
|
|
|
|
|
_ => "Unknown login method"
|
|
|
|
};
|
|
|
|
}
|