@@ -75,15 +75,15 @@ async function authorize(projectId: string) {
7575 NiceResponse {
7676 "status": 307,
7777 "headers": Headers {
78- "location": "http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-local&redirect_uri=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&code_challenge=%3Cstripped+query+param%3E&code_challenge_method=S256&scope=openid",
78+ "location": "http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-local&redirect_uri=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&code_challenge=%3Cstripped+query+param%3E&code_challenge_method=S256&scope=openid",
7979 <some fields may have been hidden>,
8080 },
8181 },
8282 NiceResponse {
8383 "status": 303,
84- "body": "Redirecting to <a href=\\"http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>\\">http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID></a>.",
84+ "body": "Redirecting to <a href=\\"http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>\\">http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID></a>.",
8585 "headers": Headers {
86- "location": "http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>",
86+ "location": "http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>",
8787 "set-cookie": <setting cookie "_interaction" at path "/api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>" to <stripped cookie value>>,
8888 "set-cookie": <setting cookie "_interaction.sig" at path "/api/v1/integrations/custom/oauth/idp/interaction/<stripped interaction UID>" to <stripped cookie value>>,
8989 "set-cookie": <setting cookie "_interaction_resume" at path "/api/v1/integrations/custom/oauth/idp/auth/<stripped auth UID>" to <stripped cookie value>>,
@@ -93,9 +93,9 @@ async function authorize(projectId: string) {
9393 },
9494 NiceResponse {
9595 "status": 307,
96- "body": "http://localhost:STACK_PORT_PREFIX01 /integrations/custom/confirm?interaction_uid=%3Cstripped+query+param%3E&=",
96+ "body": "http://localhost:<$STACK_PORT_PREFIX>01 /integrations/custom/confirm?interaction_uid=%3Cstripped+query+param%3E&=",
9797 "headers": Headers {
98- "location": "http://localhost:STACK_PORT_PREFIX01 /integrations/custom/confirm?interaction_uid=%3Cstripped+query+param%3E&external_project_name=custom-project",
98+ "location": "http://localhost:<$STACK_PORT_PREFIX>01 /integrations/custom/confirm?interaction_uid=%3Cstripped+query+param%3E&external_project_name=custom-project",
9999 <some fields may have been hidden>,
100100 },
101101 },
@@ -130,7 +130,7 @@ async function authorize(projectId: string) {
130130 NiceResponse {
131131 "status": 303,
132132 "headers": Headers {
133- "location": "http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/auth/<stripped auth UID>",
133+ "location": "http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/auth/<stripped auth UID>",
134134 <some fields may have been hidden>,
135135 },
136136 },
@@ -169,7 +169,7 @@ it(`should not redirect to the incorrect callback URL`, async ({}) => {
169169 NiceResponse {
170170 "status": 307,
171171 "headers": Headers {
172- "location": "http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-local&redirect_uri=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&code_challenge=%3Cstripped+query+param%3E&code_challenge_method=S256&scope=openid",
172+ "location": "http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-local&redirect_uri=%3Cstripped+query+param%3E&state=%3Cstripped+query+param%3E&code_challenge=%3Cstripped+query+param%3E&code_challenge_method=S256&scope=openid",
173173 <some fields may have been hidden>,
174174 },
175175 },
@@ -178,7 +178,7 @@ it(`should not redirect to the incorrect callback URL`, async ({}) => {
178178 "body": {
179179 "error": "invalid_redirect_uri",
180180 "error_description": "redirect_uri did not match any of the client's registered redirect_uris",
181- "iss": "http://localhost:STACK_PORT_PREFIX02 /api/v1/integrations/custom/oauth/idp",
181+ "iss": "http://localhost:<$STACK_PORT_PREFIX>02 /api/v1/integrations/custom/oauth/idp",
182182 "state": "eyJkZXRhaWxzIjp7ImV4dGVybmFsX3Byb2plY3RfbmFtZSI6ImN1c3RvbS1wcm9qZWN0In19",
183183 },
184184 "headers": Headers { <some fields may have been hidden> },
0 commit comments