From 39f389359e7842acadcbe2c015362ca374ddbcb8 Mon Sep 17 00:00:00 2001 From: Michael Clancy Date: Wed, 20 Nov 2024 21:48:41 +0000 Subject: [PATCH] CDPS-1054: Corrected reference to client credentials and update registration id. --- .../common/config/WebClientConfiguration.kt | 2 +- src/main/resources/application.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) 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