Identity Server Provider
💡
This provider has been deprecated and is superceded by Duende IdentityServer6.
Resources
Setup
Callback URL
https://example.com/api/auth/callback/identity-server4
Environment Variables
AUTH_IDENTITY_SERVER4_ID
AUTH_IDENTITY_SERVER4_SECRET
AUTH_IDENTITY_SERVER4_ISSUER
Configuration
/auth.ts
import NextAuth from "next-auth"
import IdentityServer4 from "next-auth/providers/identity-server4"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [IdentityServer4],
})