Skip to content

Commit 21ac449

Browse files
tristanvanechJon Wayne Parrott
authored andcommitted
Verify issuer claim (#529)
1 parent c261af8 commit 21ac449

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,9 @@ def verify_auth_token(request):
111111
request_jwt,
112112
public_key,
113113
algorithms=['RS256'],
114-
audience=os.environ['FIREBASE_PROJECT_ID'])
114+
audience=os.environ['FIREBASE_PROJECT_ID'],
115+
issuer="https://securetoken.google.com/"
116+
+ os.environ['FIREBASE_PROJECT_ID'])
115117
except jwt.exceptions.InvalidTokenError as e:
116118
logging.warning('JWT verification failed: {}'.format(e))
117119
return None

0 commit comments

Comments
 (0)