-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathappsettings.json
129 lines (128 loc) · 3.83 KB
/
appsettings.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
{
"Serilog": {
"MinimumLevel": {
"Default": "Debug",
"Override": {
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information",
"Microsoft.AspNetCore.Authentication": "Debug",
"System": "Warning"
}
}
},
"ConnectionStrings": {
"DefaultConnection": "Server=localhost,1433;Database=BlazorAppIdentity;User Id=sa;Password=P@ssw0rd;TrustServerCertificate=true;"
},
"AllowedHosts": "*",
"AllowedOrigins": [
"http://localhost:4200",
"https://localhost:5002",
"https://localhost:7061",
"https://localhost:7281"
],
"ScopeToUrlMappings": {
"Mappings": {
"blazor-client-api": "http://localhost:4200",
"test-client-api": "http://localhost:4200",
"plannr-api": "https://localhost:7281"
}
},
"IdentityResources": [
{
"Name": "openid",
"UserClaims": [ "sub" ]
},
{
"Name": "profile",
"UserClaims": [ "name", "family_name", "given_name", "middle_name", "full_name", "nickname", "preferred_username", "profile", "picture", "website", "gender", "birthdate", "zoneinfo", "locale", "updated_at" ]
},
{
"Name": "email",
"UserClaims": [ "email", "email_verified" ]
}
],
"ApiScopes": [
{
"Name": "blazor-client-api",
"DisplayName": "Blazor Client API"
},
{
"Name": "test-client-api",
"DisplayName": "Test Client API"
},
{
"Name": "plannr-api",
"DisplayName": "Plannr API"
}
],
"Clients": {
"Blazor_Test_Client": {
"ClientName": "Blazor test client",
"ClientId": "blazor-test-client",
"RequirePkce": true,
"RequireClientSecret": false,
"AlwaysIncludeUserClaimsInIdToken": true,
"AlwaysSendClientClaims": true,
"AllowedGrantTypes": [ "authorization_code" ],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"email",
"blazor-client-api"
],
"RedirectUris": [ "<REPLACED WHEN DEPLOYING>" ],
"AllowedCorsOrigins": [ "<REPLACED WHEN DEPLOYING>" ]
},
"BlazorWasmClient": {
"ClientName": "Blazor WASM Client",
"ClientId": "blazor-wasm-client",
"RequirePkce": true,
"RequireClientSecret": false,
"AlwaysIncludeUserClaimsInIdToken": true,
"AlwaysSendClientClaims": true,
"AllowedGrantTypes": [ "authorization_code" ],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"email",
"plannr-api"
],
"RedirectUris": [ "https://localhost:5002/authentication/callback", "http://localhost:5002/authentication/callback" ],
"PostLogoutRedirectUris": [ "https://localhost:5002/", "https://localhost:5002/" ],
"AllowedCorsOrigins": [ "https://localhost:5002", "https://localhost:7061" ]
},
"TestClient": {
"ClientName": "Test Client",
"ClientId": "test-client",
"RequirePkce": false,
"RequireClientSecret": false,
"AlwaysIncludeUserClaimsInIdToken": true,
"AlwaysSendClientClaims": true,
"AllowedGrantTypes": [ "authorization_code" ],
"AllowOfflineAccess": true,
"AllowedScopes": [
"openid",
"profile",
"email"
],
"RedirectUris": [ "http://localhost:4200/callback", "https://localhost:4200/callback" ],
"AllowedCorsOrigins": [ "http://localhost:4200", "https://localhost:4200" ]
},
},
"ApiResources": [
{
"Name": "blazor-app",
"DisplayName": "Blazor API",
"Scopes": [ "blazor-client-api", "email", "profile" ],
"UserClaims": [ "email", "profile", "given_name", "family_name", "role" ]
},
{
"Name": "plannr",
"DisplayName": "Plannr API",
"Scopes": [ "plannr-api", "email", "profile" ],
"UserClaims": [ "email", "profile", "given_name", "family_name", "role" ]
}
]
}