Skip to content

Commit d100033

Browse files
committed
rename back
1 parent a16589e commit d100033

3 files changed

Lines changed: 11 additions & 11 deletions

File tree

apps/backend/.env.development

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,4 +41,4 @@ STACK_ARTIFICIAL_DEVELOPMENT_DELAY_MS=50
4141

4242
STACK_ENABLE_HARDCODED_PASSKEY_CHALLENGE_FOR_TESTING=yes
4343

44-
STACK_INTEGRATION_CLIENTS_CONFIG=[{"client_id": "neon-dev", "client_secret": "neon-dev-secret", "id_token_signed_response_alg": "ES256", "redirect_uris": ["http://localhost:30000/api/v2/identity/authorize", "http://localhost:30000/api/v2/auth/authorize"]}, {"client_id": "custom-dev", "client_secret": "custom-dev-secret", "id_token_signed_response_alg": "ES256", "redirect_uris": ["http://localhost:30000/api/v2/identity/authorize", "http://localhost:30000/api/v2/auth/authorize"]}]
44+
STACK_INTEGRATION_CLIENTS_CONFIG=[{"client_id": "neon-local", "client_secret": "neon-local-secret", "id_token_signed_response_alg": "ES256", "redirect_uris": ["http://localhost:30000/api/v2/identity/authorize", "http://localhost:30000/api/v2/auth/authorize"]}, {"client_id": "custom-local", "client_secret": "custom-local-secret", "id_token_signed_response_alg": "ES256", "redirect_uris": ["http://localhost:30000/api/v2/identity/authorize", "http://localhost:30000/api/v2/auth/authorize"]}]

apps/e2e/tests/backend/endpoints/api/v1/integrations/custom/oauth.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function authorizePart1(redirectUri: string = "http://localhost:30000/api/
1010
method: "GET",
1111
query: {
1212
response_type: "code",
13-
client_id: "custom-dev",
13+
client_id: "custom-local",
1414
redirect_uri: redirectUri,
1515
state: encodeBase64Url(new TextEncoder().encode(JSON.stringify({ details: { external_project_name: 'custom-project' } }))),
1616
code_challenge: "xf6HY7PIgoaCf_eMniSt-45brYE2J_05C9BnfIbueik",
@@ -75,7 +75,7 @@ async function authorize(projectId: string) {
7575
NiceResponse {
7676
"status": 307,
7777
"headers": Headers {
78-
"location": "http://localhost:8102/api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-dev&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:8102/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
},
@@ -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:8102/api/v1/integrations/custom/oauth/idp/auth?response_type=code&client_id=custom-dev&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:8102/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
},
@@ -203,7 +203,7 @@ it(`should exchange the authorization code for an admin API key that works`, asy
203203
redirect_uri: "http://localhost:30000/api/v2/auth/authorize",
204204
},
205205
headers: {
206-
"Authorization": encodeBasicAuthorizationHeader("custom-dev", "custom-dev-secret")
206+
"Authorization": encodeBasicAuthorizationHeader("custom-local", "custom-local-secret")
207207
},
208208
});
209209
expect(tokenResponse).toMatchInlineSnapshot(`
@@ -257,7 +257,7 @@ it(`should not exchange the authorization code when the client secret is incorre
257257
redirect_uri: "http://localhost:30000/api/v2/auth/authorize",
258258
},
259259
headers: {
260-
"Authorization": encodeBasicAuthorizationHeader("custom-dev", "wrong-secret")
260+
"Authorization": encodeBasicAuthorizationHeader("custom-local", "wrong-secret")
261261
},
262262
});
263263
expect(tokenResponse).toMatchInlineSnapshot(`

apps/e2e/tests/backend/endpoints/api/v1/integrations/neon/oauth.test.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ async function authorizePart1(redirectUri: string = "http://localhost:30000/api/
1010
method: "GET",
1111
query: {
1212
response_type: "code",
13-
client_id: "neon-dev",
13+
client_id: "neon-local",
1414
redirect_uri: redirectUri,
1515
state: encodeBase64Url(new TextEncoder().encode(JSON.stringify({ details: { neon_project_name: 'neon-project' } }))),
1616
code_challenge: "xf6HY7PIgoaCf_eMniSt-45brYE2J_05C9BnfIbueik",
@@ -75,7 +75,7 @@ async function authorize(projectId: string) {
7575
NiceResponse {
7676
"status": 307,
7777
"headers": Headers {
78-
"location": "http://localhost:8102/api/v1/integrations/neon/oauth/idp/auth?response_type=code&client_id=neon-dev&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:8102/api/v1/integrations/neon/oauth/idp/auth?response_type=code&client_id=neon-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
},
@@ -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:8102/api/v1/integrations/neon/oauth/idp/auth?response_type=code&client_id=neon-dev&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:8102/api/v1/integrations/neon/oauth/idp/auth?response_type=code&client_id=neon-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
},
@@ -203,7 +203,7 @@ it(`should exchange the authorization code for an admin API key that works`, asy
203203
redirect_uri: "http://localhost:30000/api/v2/auth/authorize",
204204
},
205205
headers: {
206-
"Authorization": encodeBasicAuthorizationHeader("neon-dev", "neon-dev-secret")
206+
"Authorization": encodeBasicAuthorizationHeader("neon-local", "neon-local-secret")
207207
},
208208
});
209209
expect(tokenResponse).toMatchInlineSnapshot(`
@@ -257,7 +257,7 @@ it(`should not exchange the authorization code when the client secret is incorre
257257
redirect_uri: "http://localhost:30000/api/v2/auth/authorize",
258258
},
259259
headers: {
260-
"Authorization": encodeBasicAuthorizationHeader("neon-dev", "wrong-secret")
260+
"Authorization": encodeBasicAuthorizationHeader("neon-local", "wrong-secret")
261261
},
262262
});
263263
expect(tokenResponse).toMatchInlineSnapshot(`

0 commit comments

Comments
 (0)