Skip to content

Commit

Permalink
OIDC: add config flag (#11007)
Browse files Browse the repository at this point in the history
* add settings flag for native oidc flow

* i18n
  • Loading branch information
Kerry committed Jun 7, 2023
1 parent 34439ee commit 700786a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/i18n/strings/en_EN.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
6 changes: 6 additions & 0 deletions src/settings/Settings.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<LabGroup, string> = {
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 700786a

Please sign in to comment.