Skip to content

Commit

Permalink
Add feature flag to enable/disable orcid login
Browse files Browse the repository at this point in the history
  • Loading branch information
matkaczmarek committed Oct 28, 2024
1 parent f4f6b1e commit 604a45b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ ORCID_REDIRECT_URI=http://localhost:8000/authorcid
ORCID_CLIENT_ID=SECRET
ORCID_CLIENT_SECRET=SECRET
ORCID_SCOPE='/read-limited,/activities/update'
ORCID_LOGIN_ENABLED=True

STORAGE_TYPE=LOCAL

Expand Down
2 changes: 1 addition & 1 deletion physionet-django/physionet/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@
ORCID_CLIENT_ID = config('ORCID_CLIENT_ID', default=False)
ORCID_CLIENT_SECRET = config('ORCID_CLIENT_SECRET', default=False)
ORCID_SCOPE = config('ORCID_SCOPE', default=False)
ORCID_LOGIN_ENABLED = "openid" in ORCID_SCOPE
ORCID_LOGIN_ENABLED = config('ORCID_LOGIN_ENABLED', default=("openid" in ORCID_SCOPE))
ORCID_OPEN_ID_JWKS_URL = config('ORCID_OPEN_ID_JWKS_URL', default=False)

# Tags for the CITISOAPService API
Expand Down

0 comments on commit 604a45b

Please sign in to comment.