diff --git a/projects/refer-and-monitor-and-delius/src/main/resources/application.yml b/projects/refer-and-monitor-and-delius/src/main/resources/application.yml index ccaa016343..7a7bbbed45 100644 --- a/projects/refer-and-monitor-and-delius/src/main/resources/application.yml +++ b/projects/refer-and-monitor-and-delius/src/main/resources/application.yml @@ -31,6 +31,8 @@ spring: hmpps-auth: token-uri: http://localhost:${wiremock.port}/auth/oauth/token +springdoc.default-produces-media-type: application/json + delius.db.username: ReferAndMonitorAndDelius # Should match value in [deploy/database/access.yml]. management: diff --git a/projects/tier-to-delius/deploy/values-dev.yml b/projects/tier-to-delius/deploy/values-dev.yml index 94d719c635..e1f422c81a 100644 --- a/projects/tier-to-delius/deploy/values-dev.yml +++ b/projects/tier-to-delius/deploy/values-dev.yml @@ -11,7 +11,6 @@ generic-service: INTEGRATIONS_TIER_URL: https://hmpps-tier-dev.hmpps.service.justice.gov.uk SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: https://sign-in-dev.hmpps.service.justice.gov.uk/auth/.well-known/jwks.json SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: https://sign-in-dev.hmpps.service.justice.gov.uk/auth/issuer - CRN-STREAMING_TIMEOUT: "10800000" LOGGING_LEVEL_UK_GOV_DIGITAL_JUSTICE_HMPPS: DEBUG diff --git a/projects/tier-to-delius/deploy/values-preprod.yml b/projects/tier-to-delius/deploy/values-preprod.yml index c553d81736..330e777fa7 100644 --- a/projects/tier-to-delius/deploy/values-preprod.yml +++ b/projects/tier-to-delius/deploy/values-preprod.yml @@ -11,7 +11,6 @@ generic-service: INTEGRATIONS_TIER_URL: https://hmpps-tier-preprod.hmpps.service.justice.gov.uk SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: https://sign-in-preprod.hmpps.service.justice.gov.uk/auth/.well-known/jwks.json SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: https://sign-in-preprod.hmpps.service.justice.gov.uk/auth/issuer - CRN-STREAMING_TIMEOUT: "21600000" generic-prometheus-alerts: businessHoursOnly: true \ No newline at end of file diff --git a/projects/tier-to-delius/deploy/values-prod.yml b/projects/tier-to-delius/deploy/values-prod.yml index 138992b04e..b0a098b54f 100644 --- a/projects/tier-to-delius/deploy/values-prod.yml +++ b/projects/tier-to-delius/deploy/values-prod.yml @@ -7,5 +7,4 @@ generic-service: SPRING_SECURITY_OAUTH2_CLIENT_PROVIDER_HMPPS-AUTH_TOKEN-URI: https://sign-in.hmpps.service.justice.gov.uk/auth/oauth/token INTEGRATIONS_TIER_URL: https://hmpps-tier.hmpps.service.justice.gov.uk SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_JWK_SET_URI: https://sign-in.hmpps.service.justice.gov.uk/auth/.well-known/jwks.json - SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: https://sign-in.hmpps.service.justice.gov.uk/auth/issuer - CRN-STREAMING_TIMEOUT: "21600000" \ No newline at end of file + SPRING_SECURITY_OAUTH2_RESOURCESERVER_JWT_ISSUER_URI: https://sign-in.hmpps.service.justice.gov.uk/auth/issuer \ No newline at end of file diff --git a/projects/tier-to-delius/deploy/values.yaml b/projects/tier-to-delius/deploy/values.yaml index a067b74aae..7ddb577de8 100644 --- a/projects/tier-to-delius/deploy/values.yaml +++ b/projects/tier-to-delius/deploy/values.yaml @@ -15,8 +15,8 @@ generic-service: common: SPRING_DATASOURCE_URL: DB_URL tier-to-delius-client-credentials: - SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_TIER-TO-DELIUS_CLIENT-ID: CLIENT_ID - SPRING_SECURITY_OAUTH2_CLIENT_REGISTRATION_TIER-TO-DELIUS_CLIENT-SECRET: CLIENT_SECRET + OAUTH2_CLIENT-ID: CLIENT_ID + OAUTH2_CLIENT-SECRET: CLIENT_SECRET tier-to-delius-database: SPRING_DATASOURCE_USERNAME: DB_USERNAME SPRING_DATASOURCE_PASSWORD: DB_PASSWORD diff --git a/projects/tier-to-delius/src/main/resources/application.yml b/projects/tier-to-delius/src/main/resources/application.yml index c0edbe218b..2fcb3a3dff 100644 --- a/projects/tier-to-delius/src/main/resources/application.yml +++ b/projects/tier-to-delius/src/main/resources/application.yml @@ -21,12 +21,13 @@ spring: default: provider: hmpps-auth authorization-grant-type: client_credentials - client-id: tier-to-delius - client-secret: tier-to-delius + client-id: ${oauth2.client-id} + client-secret: ${oauth2.client-secret} provider: hmpps-auth: token-uri: http://localhost:${wiremock.port}/auth/oauth/token - springdoc.default-produces-media-type: application/json + +springdoc.default-produces-media-type: application/json delius.db.username: TierToDelius # Should match value in [deploy/database/access.yml].