From fd33d763c30d20f1fa2edab4944ea5b7cd79b2f3 Mon Sep 17 00:00:00 2001 From: dominik003 Date: Mon, 9 Oct 2023 16:44:19 +0200 Subject: [PATCH] fix: Change `id_token` to `access_token` for oauth --- .../capellacollab/core/authentication/provider/oauth/routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/capellacollab/core/authentication/provider/oauth/routes.py b/backend/capellacollab/core/authentication/provider/oauth/routes.py index 4f863b2fa..776837f7d 100644 --- a/backend/capellacollab/core/authentication/provider/oauth/routes.py +++ b/backend/capellacollab/core/authentication/provider/oauth/routes.py @@ -30,7 +30,7 @@ async def api_get_token( body: TokenRequest, db: orm.Session = fastapi.Depends(database.get_db) ): token = get_token(body.code) - access_token = token["id_token"] + access_token = token["access_token"] validated_token = JWTBearer().validate_token(access_token) assert validated_token