chore: Put oidc behind a feature flag until fixed
This commit is contained in:
parent
c7a0a41c82
commit
1ea607f633
2 changed files with 2 additions and 1 deletions
|
|
@ -53,6 +53,7 @@ enum AppSettings<T> {
|
|||
colorSchemeSeedInt<int>('chat.fluffy.color_scheme_seed', 0xFF5625BA),
|
||||
emojiSuggestionLocale<String>('emoji_suggestion_locale', ''),
|
||||
enableSoftLogout<bool>('chat.fluffy.enable_soft_logout', false),
|
||||
enableMatrixNativeOIDC<bool>('chat.fluffy.enable_matrix_native_oidc', false),
|
||||
presetHomeserver<String>('chat.fluffy.preset_homeserver', ''),
|
||||
welcomeText<String>('chat.fluffy.welcome_text', '');
|
||||
|
||||
|
|
|
|||
|
|
@ -48,7 +48,7 @@ Future<void> connectToHomeserverFlow(
|
|||
if (consent != OkCancelResult.ok) return;
|
||||
}
|
||||
|
||||
if (authMetadata != null) {
|
||||
if (authMetadata != null && AppSettings.enableMatrixNativeOIDC.value) {
|
||||
await oidcLoginFlow(client, context, signUp);
|
||||
} else if (supportsSso) {
|
||||
await ssoLoginFlow(client, context, signUp);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue