Overview#
This article describes how to perform authentication with ORCID, OSF (The Open Science Framework), and GRDM (GakuNin RDM) using NextAuth.js.
Demo Apps#
ORCID#
https://orcid-app.vercel.app/
OSF#
https://osf-app.vercel.app/
GRDM#
https://rdm-app.vercel.app/
Repository#
ORCID#
https://github.com/nakamura196/orcid_app
Below is an example of the options configuration.
https://github.com/nakamura196/orcid_app/blob/main/src/app/api/auth/[…nextauth]/authOptions.js
OSF#
https://github.com/nakamura196/osf-app
Below is an example of the options configuration.
https://github.com/nakamura196/osf-app/blob/main/src/app/api/auth/[…nextauth]/authOptions.js
GRDM#
https://github.com/nakamura196/rdm_app
Below is an example of the options configuration.
https://github.com/nakamura196/rdm_app/blob/main/src/app/api/auth/[…nextauth]/authOptions.js
Summary#
There may be areas for improvement, but I hope this serves as a useful reference.