Skip to content

Commit 2fce08c

Browse files
authored
docs(provider): Update IdentityServer 4 demo configuration (#1932)
1 parent adf3fb6 commit 2fce08c

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

www/docs/providers/identity-server4.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,15 @@ title: IdentityServer4
77

88
https://identityserver4.readthedocs.io/en/latest/
99

10-
1110
## Example
1211

1312
```js
1413
import Providers from `next-auth/providers`
1514
...
1615
providers: [
1716
Providers.IdentityServer4({
18-
id: "identity-server4",
19-
name: "IdentityServer4",
17+
id: "identity-server4",
18+
name: "IdentityServer4",
2019
scope: "openid profile email api offline_access", // Allowed Scopes
2120
domain: process.env.IdentityServer4_Domain,
2221
clientId: process.env.IdentityServer4_CLIENT_ID,
@@ -33,18 +32,20 @@ The configuration below is for the demo server at https://demo.identityserver.io
3332
If you want to try it out, you can copy and paste the configuration below.
3433

3534
You can sign in to the demo service with either <b>bob/bob</b> or <b>alice/alice</b>.
36-
35+
3736
```js
3837
import Providers from `next-auth/providers`
3938
...
4039
providers: [
4140
Providers.IdentityServer4({
42-
id: "demo-identity-server",
43-
name: "Demo IdentityServer4",
44-
scope: "openid profile email api offline_access",
41+
id: "demo-identity-server",
42+
name: "Demo IdentityServer4",
43+
scope: "openid profile email api offline_access",
4544
domain: "demo.identityserver.io",
46-
clientId: "server.code",
47-
clientSecret: "secret"
45+
clientId: "interactive.confidential",
46+
clientSecret: "secret",
47+
protection: "pkce"
4848
})
4949
}
5050
...
51+
```

0 commit comments

Comments
 (0)