chore: Put oidc behind a feature flag until fixed

This commit is contained in:
Christian Kußowski 2026-02-25 12:33:59 +01:00
parent c7a0a41c82
commit 1ea607f633
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652
2 changed files with 2 additions and 1 deletions

View file

@ -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', '');

View file

@ -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);