Skip to content

Commit bb8c54f

Browse files
authored
Fix: Change variable name for consistency (GoogleCloudPlatform#7751)
b/224052838
1 parent c35e0a6 commit bb8c54f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

auth/service-to-service/auth.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import google.oauth2.id_token
2525

2626

27-
def make_authorized_get_request(service_url, audience):
27+
def make_authorized_get_request(endpoint, audience):
2828
"""
2929
make_authorized_get_request makes a GET request to the specified HTTP endpoint
3030
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):
4141
# audience = https://project-region-projectid.cloudfunctions.net/myFunction
4242
# [START cloudrun_service_to_service_auth]
4343

44-
req = urllib.request.Request(service_url)
44+
req = urllib.request.Request(endpoint)
4545

4646
auth_req = google.auth.transport.requests.Request()
4747
id_token = google.oauth2.id_token.fetch_id_token(auth_req, audience)

0 commit comments

Comments
 (0)