Skip to content

Commit 86663f9

Browse files
committed
revert change
1 parent 6c9bc74 commit 86663f9

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

functions-python/operations_api/src/middleware/request_context_oauth2.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -114,13 +114,13 @@ def extract_authorization_oauth(headers: dict, google_client_id: str) -> str:
114114

115115
token = auth_header.split(" ")[1]
116116

117-
# token_info = get_token_info(token, google_client_id)
117+
token_info = get_token_info(token, google_client_id)
118118

119-
# email = token_info.get("email")
120-
# if not email:
121-
# raise HTTPException(status_code=400, detail="Email not found in token")
119+
email = token_info.get("email")
120+
if not email:
121+
raise HTTPException(status_code=400, detail="Email not found in token")
122122

123-
return "david@mobilitydata.org"
123+
return email
124124

125125

126126
class RequestContext:

0 commit comments

Comments
 (0)