@wtfalch/foundry 0.72.1 → 0.72.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -74,8 +74,9 @@ export declare const PLATFORM_AUTH_TUNNEL_ROUTES_SCOPE_KEY = "auth_tunnel_routes
|
|
|
74
74
|
* sign-in plans its step once more and the apps get the env. Never holds a value.
|
|
75
75
|
* 1: the login apps send their own invite and verification mail (auth 0.35.0, foundry 0.68.0).
|
|
76
76
|
* 2: a company's login apps get `LOGIN_PASSKEY_RP_ID` (foundry 0.70.2).
|
|
77
|
+
* 3: the login apps get `ZITADEL_DOMAIN` (foundry 0.72.2; written from 0.72.3).
|
|
77
78
|
*/
|
|
78
|
-
export declare const AUTH_LOGIN_ENV_VERSION = "
|
|
79
|
+
export declare const AUTH_LOGIN_ENV_VERSION = "3";
|
|
79
80
|
/**
|
|
80
81
|
* What the login apps' env is written for: the version, the sender address (`LOGIN_MAIL_FROM`) and the
|
|
81
82
|
* passkey RP ID (`LOGIN_PASSKEY_RP_ID`, none for the platform and a company without its own domain).
|
|
@@ -81,8 +81,9 @@ export const PLATFORM_AUTH_TUNNEL_ROUTES_SCOPE_KEY = 'auth_tunnel_routes_applied
|
|
|
81
81
|
* sign-in plans its step once more and the apps get the env. Never holds a value.
|
|
82
82
|
* 1: the login apps send their own invite and verification mail (auth 0.35.0, foundry 0.68.0).
|
|
83
83
|
* 2: a company's login apps get `LOGIN_PASSKEY_RP_ID` (foundry 0.70.2).
|
|
84
|
+
* 3: the login apps get `ZITADEL_DOMAIN` (foundry 0.72.2; written from 0.72.3).
|
|
84
85
|
*/
|
|
85
|
-
export const AUTH_LOGIN_ENV_VERSION = '
|
|
86
|
+
export const AUTH_LOGIN_ENV_VERSION = '3';
|
|
86
87
|
/**
|
|
87
88
|
* What the login apps' env is written for: the version, the sender address (`LOGIN_MAIL_FROM`) and the
|
|
88
89
|
* passkey RP ID (`LOGIN_PASSKEY_RP_ID`, none for the platform and a company without its own domain).
|
|
@@ -2226,6 +2226,8 @@ export async function provisionAuthStack(scope, deps, target, input) {
|
|
|
2226
2226
|
key: 'CUSTOM_REQUEST_HEADERS',
|
|
2227
2227
|
value: `Host:${hostname},X-Forwarded-Proto:https`,
|
|
2228
2228
|
},
|
|
2229
|
+
// #1086: the login builds redirects for an unbound host from this, never from a header.
|
|
2230
|
+
{ key: 'ZITADEL_DOMAIN', value: hostname },
|
|
2229
2231
|
{ key: 'OTEL_NODE_RESOURCE_DETECTORS', value: 'none' },
|
|
2230
2232
|
{ key: 'API_CACHE_CONFIG', value: '{"defaultMinutes":2,"longMinutes":5}' },
|
|
2231
2233
|
// #405: the login app's own requestId-free fallback (`resolveRedirectUri`
|