Skip to content

Commit

Permalink
feat: towards complete integration of OrcID setup (#96) (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
holtgrewe authored Oct 29, 2023
1 parent 162ae13 commit 3bef5e9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# Root Pipfile
/Pipfile
/Pipfile.lock

# Coverage information.
.coverage
Expand Down
4 changes: 1 addition & 3 deletions backend/app/api/api_v1/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand All @@ -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,
Expand Down

0 comments on commit 3bef5e9

Please sign in to comment.