Skip to main content

providers/duende-identity-server6

Built-in DuendeIdentityServer6 integration.

default()​

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.

pages/api/auth/[...nextauth].js
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.

tip

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.

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

Type parameters​

  • P extends DuendeISUser<P>

Parameters​

ParameterType
optionsOAuthUserConfig<P>

Returns​

OAuthConfig<P>