Next-Auth (Auth.js) integration with ISC OAuth

:bangbang: The recording for this livestream can be found here:

Join @mike818148 as he presents a comprehensive guide to using Next-Auth for authentication in Next.js projects. This video targets developers looking to integrate Next-Auth with SailPoint Identity Security Cloud (ISC), providing practical insights and step-by-step instructions. With a focus on OAuth usage, Mike explains how to request access tokens and refresh tokens. Basic knowledge of TypeScript, React, and Next.js is recommended for viewers. Stay tuned to learn how this setup will transition smoothly to Auth.js in the future.

This video is based on the content from Mike’s blog:

1 Like

Hello Developers,

As mentioned in the Live Stream, the source code is available here.

You may fork it, and deploy locally or on Vercel:

  1. When deploy locally, run npm install then npm run dev
  2. When deploy on Vercel, make sure provides the following environment variables:
  • ISC_BASE_API_URL=https://{tenant}.api.identitynow.com
  • ISC_BASE_URL=https://{tenant}.identitynow.com
  • ISC_CLIENT_ID={isc_client_id}
  • ISC_CLIENT_SECRET={isc_client_secret}
  • NEXTAUTH_SECRET={random long string}

Please let me know if you have any question or feedbacks.

Thanks and Regards,
Mike

2 Likes