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
@@ -5,13 +5,16 @@ extension URLExtension on String {
static final String prefixUrlHttp = 'http://';
String formatURLValid() {
if (startsWith(prefixUrlHttps)) {
return this;
} else if (startsWith(prefixUrlHttp)) {
return kReleaseMode ? replaceAll(prefixUrlHttp, prefixUrlHttps) : this;
} else {
return '$prefixUrlHttps${this}';
if (isNotEmpty) {
if (startsWith(prefixUrlHttps)) {
return this;
} else if (startsWith(prefixUrlHttp)) {
return kReleaseMode ? replaceAll(prefixUrlHttp, prefixUrlHttps) : this;
} else {
return '$prefixUrlHttps${this}';
}
}
return '';
}
String removePrefix() {