Identity Server 提供者
💡
此提供者已弃用,并被 Duende IdentityServer 6 取代。
资源
设置
回调 URL
https://example.com/api/auth/callback/identity-server4
环境变量
AUTH_IDENTITY_SERVER4_ID
AUTH_IDENTITY_SERVER4_SECRET
AUTH_IDENTITY_SERVER4_ISSUER
配置
/auth.ts
import NextAuth from "next-auth"
import IdentityServer4 from "next-auth/providers/identity-server4"
export const { handlers, auth, signIn, signOut } = NextAuth({
providers: [IdentityServer4],
})