You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Because:
- Allow Passwordless OTP to be enabled for a clientId and then only
specific services of that clientId or all services.
This commit:
- Adds a new env var, PASSWORDLESS_ALLOWED_CLIENT_SERVICES, to configure
which client and service are allowed to use the passwordless OTP
feature.
- Removes env var, PASSWORDLESS_ALLOWED_CLIENTIDS env var.
- Updates metricsContext to include service
Closes #FXA-13178
doc: 'Array of clients ids allowed to use passwordless authentication. Empty array means no service is allowed.',
2178
-
format: Array,
2179
-
default: [],
2180
-
env: 'PASSWORDLESS_ALLOWED_SERVICES',
2176
+
allowedClientServices: {
2177
+
doc: 'Map of client IDs to their allowed services for passwordless authentication. Format: {"clientId": {"allowedServices": ["service1", "service2"]}}. Use "*" in allowedServices for all services. Empty array denies all services.',
2178
+
format: Object,
2179
+
default: {},
2180
+
env: 'PASSWORDLESS_ALLOWED_CLIENT_SERVICES',
2181
2181
},
2182
2182
digits: {
2183
2183
doc: 'Number of digits in passwordless OTP code',
@@ -2962,3 +2962,4 @@ export type ConfigType = ReturnType<conf['getProperties']>;
0 commit comments