Skip to content

Commit be7ba8b

Browse files
Update appsettings development example with EmailOtpSenderServiceSettings
1 parent 6e91712 commit be7ba8b

3 files changed

Lines changed: 41 additions & 79 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ scripts/scratch/
2727

2828
# Local development config (use appsettings.Development.example.json as template)
2929
src/SEBT.Portal.Api/appsettings.Development.json
30+
src/SEBT.Portal.Api/appsettings.json
3031

3132
# User-specific files (MonoDevelop/Xamarin Studio)
3233
*.userprefs

src/SEBT.Portal.Api/appsettings.Development.example.json

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
}
77
},
88
"ConnectionStrings": {
9-
"DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YOUR_PASSWORD;TrustServerCertificate=True;"
9+
"DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"
1010
},
1111
"UseMockHouseholdData": false,
1212
"JwtSettings": {
@@ -15,6 +15,24 @@
1515
"Audience": "SEBT.Portal.Web",
1616
"ExpirationMinutes": 60
1717
},
18+
"EmailOtpSenderServiceSettings": {
19+
"SenderEmail": "[email protected]",
20+
"SenderName": "DC SUN Bucks",
21+
"Subject": "Your DC SUN Bucks Login Code",
22+
"ProgramName": "DC SUN Bucks",
23+
"StateName": "DC SUN Bucks",
24+
"ExpiryMinutes": 10,
25+
"Language": "en"
26+
},
27+
"SmtpClientSettings": {
28+
"SmtpServer": "localhost",
29+
"SmtpPort": 1025,
30+
"EnableSsl": false
31+
},
32+
"OtpRateLimitSettings": {
33+
"PermitLimit": 5,
34+
"WindowMinutes": 1.0
35+
},
1836
"PluginAssemblyPaths": ["plugins-dc", "plugins-co"],
1937
"IdentifierHasher": {
2038
"SecretKey": "YOUR_IDENTIFIER_HASHER_KEY_AT_LEAST_32_CHARS"
@@ -23,7 +41,7 @@
2341
"PreferredHouseholdIdTypes": ["Email"]
2442
},
2543
"DCConnector": {
26-
"ConnectionString": "Server=localhost,1434;Database=DcSource;User Id=sa;Password=YOUR_PASSWORD;TrustServerCertificate=True;"
44+
"ConnectionString": "Server=localhost,1434;Database=DcSource;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"
2745
},
2846
"Oidc": {
2947
"CompleteLoginSigningKey": "SAME_VALUE_AS_NEXT_JS_OIDC_COMPLETE_LOGIN_SIGNING_KEY_AT_LEAST_32_CHARS",
Lines changed: 20 additions & 77 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,38 @@
11
{
2-
"Serilog": {
3-
"Using": [ "Serilog.Sinks.Console", "Serilog.Sinks.File" ],
4-
"MinimumLevel": {
5-
"Default": "Information",
6-
"Override": {
7-
"Microsoft": "Warning",
8-
"Microsoft.AspNetCore": "Warning",
9-
"System": "Warning"
10-
}
11-
},
12-
"WriteTo": [
13-
{
14-
"Name": "Console",
15-
"Args": {
16-
"outputTemplate": "[{Timestamp:HH:mm:ss} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}"
17-
}
18-
},
19-
{
20-
"Name": "File",
21-
"Args": {
22-
"path": "logs/sebt-portal-.log",
23-
"rollingInterval": "Day",
24-
"retainedFileCountLimit": 7,
25-
"outputTemplate": "[{Timestamp:yyyy-MM-dd HH:mm:ss.fff zzz} {Level:u3}] {Message:lj} {Properties:j}{NewLine}{Exception}"
26-
}
27-
}
28-
],
29-
"Enrich": [ "FromLogContext" ]
30-
},
312
"Logging": {
323
"LogLevel": {
334
"Default": "Information",
345
"Microsoft.AspNetCore": "Warning"
356
}
367
},
37-
"AllowedHosts": "*",
388
"ConnectionStrings": {
39-
"DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YourStrong@Passw0rd;"
40-
},
41-
"EmailOtpSenderServiceSettings": {
42-
"SenderEmail": "[email protected]",
43-
"SenderName": "DC SUN Bucks",
44-
"Subject": "Your DC SUN Bucks Login Code",
45-
"ProgramName": "DC SUN Bucks",
46-
"StateName": "DC SUN Bucks",
47-
"ExpiryMinutes": 10,
48-
"Language": "en"
49-
},
50-
"SmtpClientSettings": {
51-
"SmtpServer": "localhost",
52-
"SmtpPort": 1025,
53-
"EnableSsl": false
54-
},
55-
"OtpRateLimitSettings": {
56-
"PermitLimit": 5,
57-
"WindowMinutes": 1.0
58-
},
59-
"IdentifierHasher": {
60-
"SecretKey": "OverrideInProductionUseEnvVarIDENTIFIERHASHER__SECRETKEY"
9+
"DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"
6110
},
11+
"UseMockHouseholdData": false,
6212
"JwtSettings": {
63-
"SecretKey": "",
13+
"SecretKey": "YOUR_JWT_SECRET_AT_LEAST_32_CHARS",
6414
"Issuer": "SEBT.Portal.Api",
6515
"Audience": "SEBT.Portal.Web",
6616
"ExpirationMinutes": 60
6717
},
68-
"IdProofingRequirements": {
69-
"address+view": "IAL1plus",
70-
"email+view": "IAL1",
71-
"phone+view": "IAL1"
18+
"PluginAssemblyPaths": ["plugins-co"],
19+
"Cbms": {
20+
"UseMockResponses": true
7221
},
73-
"Oidc": {
74-
"CompleteLoginSigningKey": "SAME_VALUE_AS_NEXT_JS_OIDC_COMPLETE_LOGIN_SIGNING_KEY_AT_LEAST_32_CHARS"
22+
"IdentifierHasher": {
23+
"SecretKey": "YOUR_IDENTIFIER_HASHER_KEY_AT_LEAST_32_CHARS"
7524
},
76-
"AppConfig": {
77-
"Agent": {
78-
"BaseUrl": "http://localhost:2772",
79-
"ApplicationId": "",
80-
"EnvironmentId": "",
81-
"ProfileId": "",
82-
"ReloadAfterSeconds": 90,
83-
"IsFeatureFlag": true
84-
}
25+
"StateHouseholdId": {
26+
"PreferredHouseholdIdTypes": ["Phone"]
8527
},
86-
"FeatureManagement": {
87-
"email_dob_opt_in": false,
88-
"AppConfig": {
89-
"Enabled": false,
90-
"ApplicationId": "",
91-
"EnvironmentId": "",
92-
"ConfigurationProfileId": ""
93-
}
28+
"DCConnector": {
29+
"ConnectionString": "Server=localhost,1434;Database=DcSource;User Id=sa;Password=YourStrong@Passw0rd;TrustServerCertificate=True;"
30+
},
31+
"Oidc": {
32+
"CompleteLoginSigningKey": "SAME_VALUE_AS_NEXT_JS_OIDC_COMPLETE_LOGIN_SIGNING_KEY_AT_LEAST_32_CHARS",
33+
"DiscoveryEndpoint": "https://auth.pingone.com/e8e64475-39e1-43de-964b-3bc2e835a2f5/as/.well-known/openid-configuration",
34+
"ClientId": "bf29dbf3-8912-4685-a28f-bb1637f925eb",
35+
"CallbackRedirectUri": "http://localhost:3000/callback",
36+
"LanguageParam": "en"
9437
}
95-
}
38+
}

0 commit comments

Comments
 (0)