From 3bef5e9622dab2f363d016dbc1ccb526e77b9ff5 Mon Sep 17 00:00:00 2001 From: Manuel Holtgrewe Date: Sun, 29 Oct 2023 13:53:02 +0100 Subject: [PATCH] feat: towards complete integration of OrcID setup (#96) (#176) --- .gitignore | 1 + backend/app/api/api_v1/api.py | 4 +--- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.gitignore b/.gitignore index e5fc7a8a..45f332ed 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,6 @@ # Root Pipfile /Pipfile +/Pipfile.lock # Coverage information. .coverage diff --git a/backend/app/api/api_v1/api.py b/backend/app/api/api_v1/api.py index 701edfa1..6a5fb39d 100644 --- a/backend/app/api/api_v1/api.py +++ b/backend/app/api/api_v1/api.py @@ -91,7 +91,7 @@ async def get_id_email(self, token: str) -> Tuple[str, Optional[str]]: if data_record_emails: email = data_record_emails[0].get("email", None) else: - email = None + email = f"needs-update-{data_user['sub']}@orcid.example.org" return str(data_user["sub"]), email @@ -115,8 +115,6 @@ async def get_id_email(self, token: str) -> Tuple[str, Optional[str]]: oauth_client=oauth_client, backend=auth_backend_cookie, state_secret=settings.SECRET_KEY, - associate_by_email=True, - is_verified_by_default=True, ) api_router.include_router( oauth_router,