Skip to content

Commit a259f66

Browse files
committed
PI-2374 Remove unsupported mtls OpenAPI security option
1 parent 1513a1b commit a259f66

File tree

1 file changed

+4
-8
lines changed
  • src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/config

1 file changed

+4
-8
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/config/OpenAPIConfig.kt

+4-8
Original file line numberDiff line numberDiff line change
@@ -33,19 +33,15 @@ import org.springframework.context.annotation.Configuration
3333
Server(url = "https://hmpps-integration-api-prod.apps.live.cloud-platform.service.justice.gov.uk", description = "Production"),
3434
],
3535
security = [
36-
SecurityRequirement(name = "mutual-tls"),
37-
SecurityRequirement(name = "api-key"),
36+
SecurityRequirement(name = "dn"),
3837
],
3938
)
4039
@SecurityScheme(
41-
name = "mutual-tls",
42-
type = SecuritySchemeType.MUTUALTLS,
43-
)
44-
@SecurityScheme(
45-
name = "api-key",
40+
name = "dn",
4641
type = SecuritySchemeType.APIKEY,
4742
`in` = SecuritySchemeIn.HEADER,
48-
paramName = "x-api-key",
43+
paramName = "subject-distinguished-name",
44+
description = "Example: O=test,CN=automated-test-client"
4945
)
5046
@Configuration
5147
class OpenAPIConfig {

0 commit comments

Comments
 (0)