@@ -7,16 +7,15 @@ title: IdentityServer4
7
7
8
8
https://identityserver4.readthedocs.io/en/latest/
9
9
10
-
11
10
## Example
12
11
13
12
``` js
14
13
import Providers from ` next-auth/providers`
15
14
...
16
15
providers: [
17
16
Providers .IdentityServer4 ({
18
- id: " identity-server4" ,
19
- name: " IdentityServer4" ,
17
+ id: " identity-server4" ,
18
+ name: " IdentityServer4" ,
20
19
scope: " openid profile email api offline_access" , // Allowed Scopes
21
20
domain: process .env .IdentityServer4_Domain ,
22
21
clientId: process .env .IdentityServer4_CLIENT_ID ,
@@ -33,18 +32,20 @@ The configuration below is for the demo server at https://demo.identityserver.io
33
32
If you want to try it out, you can copy and paste the configuration below.
34
33
35
34
You can sign in to the demo service with either <b >bob/bob</b > or <b >alice/alice</b >.
36
-
35
+
37
36
``` js
38
37
import Providers from ` next-auth/providers`
39
38
...
40
39
providers: [
41
40
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" ,
45
44
domain: " demo.identityserver.io" ,
46
- clientId: " server.code" ,
47
- clientSecret: " secret"
45
+ clientId: " interactive.confidential" ,
46
+ clientSecret: " secret" ,
47
+ protection: " pkce"
48
48
})
49
49
}
50
50
...
51
+ ```
0 commit comments