Skip to content

Commit fc14015

Browse files
author
Jon Wayne Parrott
committed
Fix firebase test
Change-Id: I9eafee2e80a640ee3407a6ff22f9e1125e510100
1 parent 389062e commit fc14015

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

appengine/standard/firebase/firenotes/backend/firebase_helper.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ def verify_auth_token(request):
112112
public_key,
113113
algorithms=['RS256'],
114114
audience=os.environ['FIREBASE_PROJECT_ID'],
115-
issuer="https://securetoken.google.com/"
116-
+ os.environ['FIREBASE_PROJECT_ID'])
115+
issuer='https://securetoken.google.com/{}'.format(
116+
os.environ['FIREBASE_PROJECT_ID']))
117117
except jwt.exceptions.InvalidTokenError as e:
118118
logging.warning('JWT verification failed: {}'.format(e))
119119
return None

appengine/standard/firebase/firenotes/backend/firebase_helper_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def test_extract_public_key_from_certificate(test_certificate):
9494

9595
def make_jwt(private_key_bytes, claims=None, headers=None):
9696
jwt_claims = {
97-
'iss': 'http://example.com',
97+
'iss': 'https://securetoken.google.com/test_audience',
9898
'aud': 'test_audience',
9999
'user_id': '123',
100100
'sub': '123',

0 commit comments

Comments
 (0)