providers/duende-identity-server6
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.
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β
βͺ P extends DuendeISUser
Parametersβ
βͺ options: OAuthUserConfig
<P
>
Returnsβ
OAuthConfig
<P
>