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),
|
colorSchemeSeedInt<int>('chat.fluffy.color_scheme_seed', 0xFF5625BA),
|
||||||
emojiSuggestionLocale<String>('emoji_suggestion_locale', ''),
|
emojiSuggestionLocale<String>('emoji_suggestion_locale', ''),
|
||||||
enableSoftLogout<bool>('chat.fluffy.enable_soft_logout', false),
|
enableSoftLogout<bool>('chat.fluffy.enable_soft_logout', false),
|
||||||
|
enableMatrixNativeOIDC<bool>('chat.fluffy.enable_matrix_native_oidc', false),
|
||||||
presetHomeserver<String>('chat.fluffy.preset_homeserver', ''),
|
presetHomeserver<String>('chat.fluffy.preset_homeserver', ''),
|
||||||
welcomeText<String>('chat.fluffy.welcome_text', '');
|
welcomeText<String>('chat.fluffy.welcome_text', '');
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -48,7 +48,7 @@ Future<void> connectToHomeserverFlow(
|
||||||
if (consent != OkCancelResult.ok) return;
|
if (consent != OkCancelResult.ok) return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (authMetadata != null) {
|
if (authMetadata != null && AppSettings.enableMatrixNativeOIDC.value) {
|
||||||
await oidcLoginFlow(client, context, signUp);
|
await oidcLoginFlow(client, context, signUp);
|
||||||
} else if (supportsSso) {
|
} else if (supportsSso) {
|
||||||
await ssoLoginFlow(client, context, signUp);
|
await ssoLoginFlow(client, context, signUp);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue