To set up ORCID Single Sign-On (SSO), you will need the following environment variables:
ORCID_CLIENT_ID: ORCID OAuth client IDORCID_CLIENT_SECRET: ORCID OAuth client secret
-
Register your application with ORCID: If you haven't already, you need to register your application with ORCID. Visit the ORCID Developer Tools.
-
Fill out the registration form: Provide necessary details about your application. After the registration is complete, you will receive your
ORCID_CLIENT_IDandORCID_CLIENT_SECRET. -
Add environment variables: Once you have your
ORCID_CLIENT_IDandORCID_CLIENT_SECRET, add them to your.envfile as follows:ORCID_CLIENT_ID=your_orcid_client_id ORCID_CLIENT_SECRET=your_orcid_client_secret
The following scopes are required for ORCID SSO:
/authenticate: This scope allows the application to read public profile information./activities/update(optional): This scope allows the application to update ORCID activities.