TF-1899 Sync and optimize handle error in base controller
(cherry picked from commit 1901d66c9100ca455c91ee8c95341de2a283eb67)
This commit is contained in:
@@ -1,18 +1,5 @@
|
||||
enum AuthenticationType {
|
||||
basic,
|
||||
oidc,
|
||||
none
|
||||
}
|
||||
|
||||
extension AuthenticationTypeExtension on AuthenticationType {
|
||||
String asString() {
|
||||
switch (this) {
|
||||
case AuthenticationType.oidc:
|
||||
return 'oidc';
|
||||
case AuthenticationType.basic:
|
||||
return 'basic';
|
||||
default:
|
||||
return 'none';
|
||||
}
|
||||
}
|
||||
none;
|
||||
}
|
||||
Reference in New Issue
Block a user