Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference
duende-identity-server6

providers/duende-identity-server6

Built-in DuendeIdentityServer6 integration.

DuendeISUser

Extends

  • Record<string, any>

Properties

email

email: string;

id

id: string;

name

name: string;

verified

verified: boolean;

default()

default<P>(options): OAuthConfig<P>

Add DuendeIdentityServer6 login to your page.

Setup

Callback URL

https://example.com/api/auth/callback/duende-identity-server6

Configuration

import Auth from "@auth/core"
import DuendeIdentityServer6 from "@auth/core/providers/duende-identity-server6"
 
const request = new Request(origin)
const response = await Auth(request, {
  providers: [DuendeIdentityServer6({ clientId: DIS6_CLIENT_ID, clientSecret: DIS6_CLIENT_SECRET, issuer: DIS6_ISSUER })],
})

Resources

Notes

Demo IdentityServer

The configuration below is for the demo server at https://demo.duendesoftware.com/

If you want to try it out, you can copy and paste the configuration below.

You can sign in to the demo service with either bob/bob or alice/alice.

import DuendeIDS6Provider from "next-auth/providers/duende-identity-server6"
providers: [
  DuendeIDS6Provider({
    clientId: "interactive.confidential",
    clientSecret: "secret",
    issuer: "https://demo.duendesoftware.com",
  })
]

By default, Auth.js assumes that the DuendeIdentityServer6 provider is based on the Open ID Connect specification.

💡

The DuendeIdentityServer6 provider comes with a default configuration. To override the defaults for your use case, check out customizing a built-in OAuth provider.

Disclaimer If you think you found a bug in the default configuration, you can open an issue.

Auth.js strictly adheres to the specification and it cannot take responsibility for any deviation from the spec by the provider. You can open an issue, but if the problem is non-compliance with the spec, we might not pursue a resolution. You can ask for more help in Discussions.

Type parameters

Type parameter
P extends DuendeISUser

Parameters

ParameterType
optionsOAuthUserConfig<P>

Returns

OAuthConfig<P>

Auth.js © Balázs Orbán and Team - 2024