-
Notifications
You must be signed in to change notification settings - Fork 1
DC-284 DRYing up appsettings #193
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,50 +1,19 @@ | ||
| { | ||
| "Logging": { | ||
| "LogLevel": { | ||
| "Default": "Information", | ||
| "Microsoft.AspNetCore": "Warning" | ||
| } | ||
| }, | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YOUR_PASSWORD;TrustServerCertificate=True;" | ||
| }, | ||
| "UseMockHouseholdData": false, | ||
| "JwtSettings": { | ||
| "SecretKey": "YOUR_JWT_SECRET_AT_LEAST_32_CHARS", | ||
| "Issuer": "SEBT.Portal.Api", | ||
| "Audience": "SEBT.Portal.Web", | ||
| "ExpirationMinutes": 60 | ||
| }, | ||
| "PluginAssemblyPaths": ["plugins-dc", "plugins-co"], | ||
| "Cbms": { | ||
| "UseMockResponses": true, | ||
| "ClientId": "YOUR_CBMS_CLIENT_ID", | ||
| "ClientSecret": "YOUR_CBMS_CLIENT_SECRET", | ||
| "ApiBaseUrl": "https://test-ch2-api.state.co.us/ext-uat-c-cbms-cfa-eapi/api", | ||
| "TokenEndpointUrl": "https://test-ch2-api.state.co.us/ext-uat-c-cbms-oauth-app/token", | ||
| "Return404ForGetAccountDetails": false | ||
| }, | ||
| "IdentifierHasher": { | ||
| "SecretKey": "YOUR_IDENTIFIER_HASHER_KEY_AT_LEAST_32_CHARS" | ||
| }, | ||
| "StateHouseholdId": { | ||
| "PreferredHouseholdIdTypes": ["Phone"] | ||
| }, | ||
| "DevelopmentPhoneOverride": { | ||
| "Phone": "8185558437" | ||
| }, | ||
| "DCConnector": { | ||
| "ConnectionString": "Server=localhost,1434;Database=DcSource;User Id=sa;Password=YOUR_PASSWORD;TrustServerCertificate=True;" | ||
|
Comment on lines
9
to
10
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. move to DC only |
||
| }, | ||
| "Oidc": { | ||
| "CompleteLoginSigningKey": "AT_LEAST_32_CHARACTERS_FOR_HMAC_SHA256_SIGNING", | ||
| "DiscoveryEndpoint": "https://auth.pingone.com/e8e64475-39e1-43de-964b-3bc2e835a2f5/as/.well-known/openid-configuration", | ||
| "ClientId": "YOUR_OIDC_CLIENT_ID", | ||
| "CallbackRedirectUri": "http://localhost:3000/callback", | ||
| "StepUp": { | ||
| "DiscoveryEndpoint": "https://auth.pingone.com/YOUR_ENV_ID/as/.well-known/openid-configuration", | ||
| "ClientId": "YOUR_OIDC_STEP_UP_CLIENT_ID", | ||
| "RedirectUri": null | ||
| } | ||
| "Socure": { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. check if it should only live in DC - nick to verify |
||
| "UseStub": true | ||
| }, | ||
| "Smarty": { | ||
| "AuthId": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG", | ||
| "AuthToken": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG" | ||
| } | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,27 +20,21 @@ | |
| }, | ||
| "Oidc": { | ||
| "CompleteLoginSigningKey": "AT_LEAST_32_CHARACTERS_FOR_HMAC_SHA256_SIGNING", | ||
| "DiscoveryEndpoint": "https://id.mycolorado.gov/.well-known/openid-configuration", | ||
| "DiscoveryEndpoint": "https://auth.pingone.com/YOUR_ENV_ID/as/.well-known/openid-configuration", | ||
| "ClientId": "YOUR_MYCOLORADO_CLIENT_ID", | ||
| "ClientSecret": "YOUR_MYCOLORADO_CLIENT_SECRET", | ||
| "CallbackRedirectUri": "http://localhost:3000/callback", | ||
| "StepUp": { | ||
| "DiscoveryEndpoint": "https://auth.pingone.com/YOUR_ENV_ID/as/.well-known/openid-configuration", | ||
|
ShaynaCummings marked this conversation as resolved.
|
||
| "ClientId": "YOUR_OIDC_STEP_UP_CLIENT_ID", | ||
| "ClientSecret": "YOUR_OIDC_STEP_UP_CLIENT_SECRET", | ||
| "RedirectUri": null | ||
| "RedirectUri": "http://localhost:3000/callback" | ||
| }, | ||
| "VerificationClaims": { | ||
| "LevelClaimName": "socureIdVerificationLevel", | ||
| "DateClaimName": "socureIdVerificationDate" | ||
| } | ||
| }, | ||
| "IdProofingValidity": { | ||
| "ValidityDays": 1826 | ||
| }, | ||
| "DevelopmentPhoneOverride": { | ||
| "Phone": null | ||
| }, | ||
| "AddressValidationPolicy": { | ||
| "AllowGeneralDelivery": true | ||
| }, | ||
|
|
@@ -49,18 +43,13 @@ | |
| "StreetAbbreviations": {}, | ||
| "MaxStreetAddressLength": 0 | ||
| }, | ||
| "Smarty": { | ||
| "Enabled": false, | ||
| "AuthId": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG", | ||
| "AuthToken": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG" | ||
| }, | ||
| "Socure": { | ||
| "Enabled": false | ||
|
ShaynaCummings marked this conversation as resolved.
|
||
| }, | ||
| "MinimumIal": { | ||
| "ApplicationCases": "IAL1", | ||
| "CoLoadedStreamlineCases": "IAL1", | ||
| "NonCoLoadedStreamlineCases": "IAL1" | ||
| "CoLoadedStreamlineCases": "IAL1plus", | ||
| "NonCoLoadedStreamlineCases": "IAL1plus" | ||
| }, | ||
| "IdProofingRequirements": { | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. will be addressed by James's upcoming PR |
||
| "address+view": "IAL1plus", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -8,7 +8,22 @@ | |
| "SenderName": "DC SUN Bucks", | ||
| "Subject": "Your DC SUN Bucks Login Code", | ||
| "ProgramName": "DC SUN Bucks", | ||
| "StateName": "DC SUN Bucks" | ||
| "StateName": "DC SUN Bucks", | ||
| "ExpiryMinutes": 10, | ||
| "Language": "en" | ||
| }, | ||
| "SmtpClientSettings": { | ||
| "SmtpServer": "localhost", | ||
| "SmtpPort": 1025, | ||
| "EnableSsl": false | ||
| }, | ||
| "OtpRateLimitSettings": { | ||
| "PermitLimit": 5, | ||
| "WindowMinutes": 1.0 | ||
| }, | ||
| "WebhookRateLimitSettings": { | ||
| "PermitLimit": 60, | ||
| "WindowMinutes": 1.0 | ||
| }, | ||
| "StateHouseholdId": { | ||
| "PreferredHouseholdIdTypes": ["Email"] | ||
|
|
@@ -38,11 +53,6 @@ | |
| }, | ||
| "MaxStreetAddressLength": 30 | ||
| }, | ||
| "Smarty": { | ||
| "Enabled": false, | ||
| "AuthId": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG", | ||
| "AuthToken": "SECRET_STORE_IN_USERSECRETS_OR_AWS_SECRETS_NOT_APP_CONFIG" | ||
| }, | ||
| "_socure_comment": [ | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. future - look into jsonc or figure out if comments are legal |
||
| "Socure identity verification integration.", | ||
| "ApiKey: obtain from Socure RiskOS dashboard > Developer Workbench > API Keys (sandbox and production are different).", | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,27 +29,6 @@ | |
| } | ||
| }, | ||
| "AllowedHosts": "*", | ||
| "ConnectionStrings": { | ||
| "DefaultConnection": "Server=localhost,1433;Database=SebtPortal;User Id=sa;Password=YourStrong@Passw0rd;" | ||
| }, | ||
| "EmailOtpSenderServiceSettings": { | ||
| "SenderEmail": "noreply@sunbucks.dc.gov", | ||
| "SenderName": "DC SUN Bucks", | ||
| "Subject": "Your DC SUN Bucks Login Code", | ||
| "ProgramName": "DC SUN Bucks", | ||
| "StateName": "DC SUN Bucks", | ||
| "ExpiryMinutes": 10, | ||
| "Language": "en" | ||
| }, | ||
| "SmtpClientSettings": { | ||
| "SmtpServer": "localhost", | ||
| "SmtpPort": 1025, | ||
| "EnableSsl": false | ||
| }, | ||
| "OtpRateLimitSettings": { | ||
| "PermitLimit": 5, | ||
| "WindowMinutes": 1.0 | ||
| }, | ||
| "EnrollmentCheckRateLimitSettings": { | ||
| "PermitLimit": 10, | ||
| "WindowMinutes": 1.0 | ||
|
|
@@ -58,11 +37,7 @@ | |
| "PermitLimit": 60, | ||
| "WindowMinutes": 1.0 | ||
| }, | ||
| "IdentifierHasher": { | ||
| "SecretKey": "OverrideInProductionUseEnvVarIDENTIFIERHASHER__SECRETKEY" | ||
| }, | ||
| "JwtSettings": { | ||
| "SecretKey": "", | ||
| "Issuer": "SEBT.Portal.Api", | ||
| "Audience": "SEBT.Portal.Web", | ||
| "ExpirationMinutes": 60 | ||
|
|
@@ -72,26 +47,6 @@ | |
| "email+view": "IAL1", | ||
| "phone+view": "IAL1" | ||
| }, | ||
| "Oidc": { | ||
| "CompleteLoginSigningKey": "AT_LEAST_32_CHARACTERS_FOR_HMAC_SHA256_SIGNING" | ||
| }, | ||
| "StateHouseholdId": { | ||
| "PreferredHouseholdIdTypes": ["Email"] | ||
| }, | ||
| "AppConfig": { | ||
| "Agent": { | ||
| "BaseUrl": "http://localhost:2772", | ||
| "ApplicationId": "", | ||
| "EnvironmentId": "", | ||
| "ReloadAfterSeconds": 90 | ||
| }, | ||
| "FeatureFlags": { | ||
| "ProfileId": "" | ||
| }, | ||
| "AppSettings": { | ||
| "ProfileId": "" | ||
| } | ||
| }, | ||
| "SelfServiceRules": { | ||
| "AddressUpdate": { | ||
| "Enabled": true, | ||
|
|
@@ -116,13 +71,11 @@ | |
| }, | ||
| "Smarty": { | ||
| "Enabled": false, | ||
|
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. future - move this to feature flag |
||
| "AuthId": "", | ||
| "AuthToken": "", | ||
| "BaseUrl": "https://us-street.api.smartystreets.com", | ||
| "TimeoutSeconds": 20 | ||
| }, | ||
| "AddressValidationPolicy": { | ||
| "AllowGeneralDelivery": true | ||
| "AllowGeneralDelivery": false | ||
| }, | ||
| "AddressValidationData": { | ||
| "BlockedAddresses": [], | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
double check whether it needs to have at least one