TF-3278 Handle open app via deep link at MailboxDashboard screen

This commit is contained in:
dab246
2024-11-22 23:30:37 +07:00
committed by Dat H. Pham
parent 8022559bc2
commit 223fdbf1fb
59 changed files with 1058 additions and 429 deletions
+8 -8
View File
@@ -2,26 +2,25 @@
import 'package:equatable/equatable.dart';
class OIDCConfiguration with EquatableMixin {
final redirectOidcMobile = 'teammail.mobile://oauthredirect';
final wellKnownOpenId = '.well-known/openid-configuration';
final loginRedirectOidcWeb = 'login-callback.html';
final logoutRedirectOidcWeb = 'logout-callback.html';
static const String _wellKnownOpenId = '.well-known/openid-configuration';
final String authority;
final String clientId;
final List<String> scopes;
final bool isTWP;
OIDCConfiguration({
required this.authority,
required this.clientId,
required this.scopes
required this.scopes,
this.isTWP = false,
});
String get discoveryUrl {
if (authority.endsWith('/')) {
return authority + wellKnownOpenId;
return authority + _wellKnownOpenId;
} else {
return '$authority/$wellKnownOpenId';
return '$authority/$_wellKnownOpenId';
}
}
@@ -29,6 +28,7 @@ class OIDCConfiguration with EquatableMixin {
List<Object?> get props => [
authority,
clientId,
scopes
scopes,
isTWP,
];
}