File tree Expand file tree Collapse file tree 1 file changed +0
-13
lines changed
Expand file tree Collapse file tree 1 file changed +0
-13
lines changed Original file line number Diff line number Diff line change @@ -447,19 +447,6 @@ describe("access token", function ()
447447 it (" should use custom oauth_token_url in JWT aud field" , function ()
448448 local custom_oauth_url = " https://custom.googleapis.com/oauth2/v4/token"
449449 local captured_request_body = nil
450- local custom_responses = {
451- [custom_oauth_url ] = function (url , opts )
452- -- Capture the request body to verify JWT contains custom URL in aud field
453- captured_request_body = opts .body
454- return {
455- status = 200 ,
456- body = [[ {"access_token": "test_custom_aud_token", "expires_in": 3600}]] ,
457- }
458- end ,
459- [" http://metadata.google.internal/computeMetadata/v1/instance/service-accounts/default/token" ] = function ()
460- return nil , " connection refused"
461- end
462- }
463450
464451 -- We need to modify the HTTP mock to capture request details
465452 local original_http = package.loaded [" resty.luasocket.http" ]
You can’t perform that action at this time.
0 commit comments