Skip to content

Commit 210b7b2

Browse files
Abby Careygguuss
authored andcommitted
Adding issuer (GoogleCloudPlatform#2266)
* Adding issuer * Update make_iap_request.py
1 parent 729efa6 commit 210b7b2

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

iap/make_iap_request.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def make_iap_request(url, client_id, method='GET', **kwargs):
4848
# Set the default timeout, if missing
4949
if 'timeout' not in kwargs:
5050
kwargs['timeout'] = 90
51-
51+
5252
# Figure out what environment we're running in and get some preliminary
5353
# information about the service account.
5454
bootstrap_credentials, _ = google.auth.default(

iap/validate_jwt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ def _validate_iap_jwt(iap_jwt, expected_audience):
7777
decoded_jwt = jwt.decode(
7878
iap_jwt, key,
7979
algorithms=['ES256'],
80+
issuer='https://cloud.google.com/iap',
8081
audience=expected_audience)
8182
return (decoded_jwt['sub'], decoded_jwt['email'], '')
8283
except (jwt.exceptions.InvalidTokenError,

0 commit comments

Comments
 (0)