TF-1899 Sync and optimize handle error in base controller

(cherry picked from commit 1901d66c9100ca455c91ee8c95341de2a283eb67)
This commit is contained in:
dab246
2023-06-07 00:07:30 +07:00
committed by Dat Vu
parent dda45438ef
commit 00d8499879
12 changed files with 89 additions and 122 deletions
+1 -14
View File
@@ -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;
}