diff --git a/src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/config/WebClientConfiguration.kt b/src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/config/WebClientConfiguration.kt index ae00fda..054fd70 100644 --- a/src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/config/WebClientConfiguration.kt +++ b/src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/config/WebClientConfiguration.kt @@ -52,7 +52,7 @@ class WebClientConfiguration( authorizedClientManagerUserEnhanced(clientRegistrationRepository), builder, prisonApiBaseUri, - "prison-api", + "hmpps-person-integration-api", prisonApiTimeout, ) } diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index ea015c4..bc9d4e4 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -28,10 +28,10 @@ spring: token-uri: ${hmpps-auth.url}/oauth/token registration: - prison-api: + hmpps-person-integration-api: provider: hmpps-auth - client-id: ${hmpps-person-integration-api.system.client.id} - client-secret: ${hmpps-person-integration-api.system.client.secret} + client-id: ${system.client.id} + client-secret: ${system.client.secret} authorization-grant-type: client_credentials scope: read