OIDC: add config flag (#11007)

* add settings flag for native oidc flow

* i18n
This commit is contained in:
Kerry 2023-06-08 09:32:09 +12:00 committed by GitHub
parent 34439ee652
commit 700786ad86
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View file

@ -988,6 +988,7 @@
"Favourite Messages": "Favourite Messages", "Favourite Messages": "Favourite Messages",
"Under active development.": "Under active development.", "Under active development.": "Under active development.",
"Force 15s voice broadcast chunk length": "Force 15s voice broadcast chunk length", "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", "Rust cryptography implementation": "Rust cryptography implementation",
"Font size": "Font size", "Font size": "Font size",
"Use custom size": "Use custom size", "Use custom size": "Use custom size",

View file

@ -93,6 +93,7 @@ export enum LabGroup {
export enum Features { export enum Features {
VoiceBroadcast = "feature_voice_broadcast", VoiceBroadcast = "feature_voice_broadcast",
VoiceBroadcastForceSmallChunks = "feature_voice_broadcast_force_small_chunks", VoiceBroadcastForceSmallChunks = "feature_voice_broadcast_force_small_chunks",
OidcNativeFlow = "feature_oidc_native_flow",
} }
export const labGroupNames: Record<LabGroup, string> = { export const labGroupNames: Record<LabGroup, string> = {
@ -445,6 +446,11 @@ export const SETTINGS: { [setting: string]: ISetting } = {
displayName: _td("Force 15s voice broadcast chunk length"), displayName: _td("Force 15s voice broadcast chunk length"),
default: false, default: false,
}, },
[Features.OidcNativeFlow]: {
supportedLevels: LEVELS_FEATURE,
displayName: _td("Enable new native OIDC flows (Under active development)"),
default: false,
},
"feature_rust_crypto": { "feature_rust_crypto": {
// use the rust matrix-sdk-crypto-js for crypto. // use the rust matrix-sdk-crypto-js for crypto.
isFeature: true, isFeature: true,