TF-571 Check OIDC is available

This commit is contained in:
dab246
2022-05-20 12:38:31 +07:00
committed by Dat H. Pham
parent c5aa9f7d69
commit 239234f836
29 changed files with 625 additions and 55 deletions
@@ -1,5 +0,0 @@
import 'package:core/data/network/config/service_path.dart';
class Endpoint {
static final ServicePath authentication = ServicePath('/api/login');
}
+1 -14
View File
@@ -1,19 +1,6 @@
class ServicePath {
final String path;
ServicePath(this.path);
}
extension ServicePathExtension on ServicePath {
String generateEndpointPath() {
return '$path';
}
String generateAuthenticationUrl(Uri? baseUrl) {
if (baseUrl == null) {
return generateEndpointPath();
} else {
return baseUrl.origin + generateEndpointPath();
}
}
}