Skip to content

Commit

Permalink
feat(OpenAPIConfig): added xApiKey security scheme
Browse files Browse the repository at this point in the history
Took 30 seconds
  • Loading branch information
vianneynara committed Dec 20, 2024
1 parent 21f4574 commit cf7525d
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@ public OpenAPI customOpenAPI() {
.type(SecurityScheme.Type.APIKEY)
.in(SecurityScheme.In.COOKIE)
.name("refreshToken")
.description("HTTP-only refresh token cookie")))
.description("HTTP-only refresh token cookie"))
.addSecuritySchemes("xApiKey",
new SecurityScheme()
.type(SecurityScheme.Type.APIKEY)
.in(SecurityScheme.In.HEADER)
.name("X-Api-Key")))
.info(new Info()
.title("KuenyaWZ API")
.version("1.0.0")
Expand Down

0 comments on commit cf7525d

Please sign in to comment.