From 700786ad861217e02529223a49d84aca02465e42 Mon Sep 17 00:00:00 2001 From: Kerry Date: Thu, 8 Jun 2023 09:32:09 +1200 Subject: [PATCH] OIDC: add config flag (#11007) * add settings flag for native oidc flow * i18n --- src/i18n/strings/en_EN.json | 1 + src/settings/Settings.tsx | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/i18n/strings/en_EN.json b/src/i18n/strings/en_EN.json index d3180f3dfc..84ca822e85 100644 --- a/src/i18n/strings/en_EN.json +++ b/src/i18n/strings/en_EN.json @@ -988,6 +988,7 @@ "Favourite Messages": "Favourite Messages", "Under active development.": "Under active development.", "Force 15s voice broadcast chunk length": "Force 15s voice broadcast chunk length", + "Enable new native OIDC flows (Under active development)": "Enable new native OIDC flows (Under active development)", "Rust cryptography implementation": "Rust cryptography implementation", "Font size": "Font size", "Use custom size": "Use custom size", diff --git a/src/settings/Settings.tsx b/src/settings/Settings.tsx index 74afc86926..6f24491c57 100644 --- a/src/settings/Settings.tsx +++ b/src/settings/Settings.tsx @@ -93,6 +93,7 @@ export enum LabGroup { export enum Features { VoiceBroadcast = "feature_voice_broadcast", VoiceBroadcastForceSmallChunks = "feature_voice_broadcast_force_small_chunks", + OidcNativeFlow = "feature_oidc_native_flow", } export const labGroupNames: Record = { @@ -445,6 +446,11 @@ export const SETTINGS: { [setting: string]: ISetting } = { displayName: _td("Force 15s voice broadcast chunk length"), default: false, }, + [Features.OidcNativeFlow]: { + supportedLevels: LEVELS_FEATURE, + displayName: _td("Enable new native OIDC flows (Under active development)"), + default: false, + }, "feature_rust_crypto": { // use the rust matrix-sdk-crypto-js for crypto. isFeature: true,