File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 24
24
import google .oauth2 .id_token
25
25
26
26
27
- def make_authorized_get_request (service_url , audience ):
27
+ def make_authorized_get_request (endpoint , audience ):
28
28
"""
29
29
make_authorized_get_request makes a GET request to the specified HTTP endpoint
30
30
by authenticating with the ID token obtained from the google-auth client library
@@ -41,7 +41,7 @@ def make_authorized_get_request(service_url, audience):
41
41
# audience = https://project-region-projectid.cloudfunctions.net/myFunction
42
42
# [START cloudrun_service_to_service_auth]
43
43
44
- req = urllib .request .Request (service_url )
44
+ req = urllib .request .Request (endpoint )
45
45
46
46
auth_req = google .auth .transport .requests .Request ()
47
47
id_token = google .oauth2 .id_token .fetch_id_token (auth_req , audience )
You can’t perform that action at this time.
0 commit comments