@@ -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 ( `
0 commit comments