Skip to content

Latest commit

 

History

History
47 lines (32 loc) · 1.79 KB

README.md

File metadata and controls

47 lines (32 loc) · 1.79 KB

No free view? no review!

CI Coverage Status

Sign the pledge: https://nofreeviewnoreview.org/

This is a CAPSH project.

This simple app is powered by Django. To run it, clone the repository, and run:

python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt
echo "from .dev import *" > nfvnr/settings/__init__.py
python manage.py migrate
python manage.py runserver

To deploy it on a web server, see Django's docs.

Configuring ORCID login

Create a superuser to access the admin interface:

python manage.py createsuperuser

Create an ORCID Sandbox account at https://sandbox.orcid.org/

Create OAuth credentials at https://sandbox.orcid.org/developer-tools (enable the public API for that). This gives you a pair of client ID and client secret.

Log into the admin interface at http://localhost:8000/admin/ with your superuser credentials created above.

Create a new social application at http://localhost:8000/admin/socialaccount/socialapp/add/

Select orcid.org as provider Input the client ID and secret in the first two text fields. Add the example.com site to the list of allowed sites (which you can later rename to the actual domain name, but that is not strictly needed). Save the social app.

For production, do the same with https://orcid.org/ instead of https://sandbox.orcid.org/.