Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding issuer #2266

Merged
merged 3 commits into from
Jul 19, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion iap/make_iap_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def make_iap_request(url, client_id, method='GET', **kwargs):
# Set the default timeout, if missing
if 'timeout' not in kwargs:
kwargs['timeout'] = 90

# Figure out what environment we're running in and get some preliminary
# information about the service account.
bootstrap_credentials, _ = google.auth.default(
Expand Down
1 change: 1 addition & 0 deletions iap/validate_jwt.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ def _validate_iap_jwt(iap_jwt, expected_audience):
decoded_jwt = jwt.decode(
iap_jwt, key,
algorithms=['ES256'],
issuer='https://cloud.google.com/iap',
audience=expected_audience)
return (decoded_jwt['sub'], decoded_jwt['email'], '')
except (jwt.exceptions.InvalidTokenError,
Expand Down