TF-624 Set clientId for oidc on browser

This commit is contained in:
dab246
2022-06-07 18:06:04 +07:00
committed by Dat H. Pham
parent 28fbe511af
commit 9092e30b96
2 changed files with 6 additions and 1 deletions
@@ -1,5 +1,10 @@
import 'package:core/core.dart';
class OIDCConstant {
static String get mobileOidcClientId => 'teammail-mobile';
static String get webOidcClientId => 'teammail-web';
static List<String> get oidcScope => ['openid', 'offline_access'];
static const keyAuthorityOidc = 'KEY_AUTHORITY_OIDC';
static String get clientId => BuildUtils.isWeb ? webOidcClientId : mobileOidcClientId;
}