Skip to content

Commit 39f3893

Browse files
committed
CDPS-1054: Corrected reference to client credentials and update registration id.
1 parent 93c2a55 commit 39f3893

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/personintegrationapi/common/config/WebClientConfiguration.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ class WebClientConfiguration(
5252
authorizedClientManagerUserEnhanced(clientRegistrationRepository),
5353
builder,
5454
prisonApiBaseUri,
55-
"prison-api",
55+
"hmpps-person-integration-api",
5656
prisonApiTimeout,
5757
)
5858
}

src/main/resources/application.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ spring:
2828
token-uri: ${hmpps-auth.url}/oauth/token
2929

3030
registration:
31-
prison-api:
31+
hmpps-person-integration-api:
3232
provider: hmpps-auth
33-
client-id: ${hmpps-person-integration-api.system.client.id}
34-
client-secret: ${hmpps-person-integration-api.system.client.secret}
33+
client-id: ${system.client.id}
34+
client-secret: ${system.client.secret}
3535
authorization-grant-type: client_credentials
3636
scope: read
3737

0 commit comments

Comments
 (0)