Skip to content

Commit

Permalink
Endpoints: decode jwt string (#2225)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel-sanche authored Jul 17, 2019
1 parent 4005a71 commit 7e51a70
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion endpoints/getting-started/clients/google-jwt-client.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def generate_jwt(sa_keyfile,
def make_jwt_request(signed_jwt, url='https://your-endpoint.com'):
"""Makes an authorized request to the endpoint"""
headers = {
'Authorization': 'Bearer {}'.format(signed_jwt),
'Authorization': 'Bearer {}'.format(signed_jwt.decode('utf-8')),
'content-type': 'application/json'
}
response = requests.get(url, headers=headers)
Expand Down

0 comments on commit 7e51a70

Please sign in to comment.