Skip to content

Commit

Permalink
switch open-api spec to basic auth (#1540)
Browse files Browse the repository at this point in the history
  • Loading branch information
goekay committed Aug 21, 2024
1 parent 4b63474 commit f3910b9
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,11 @@ public class ApiDocsConfiguration {
public OpenAPI apiDocs() {
String title = "SteVe REST API Documentation";

String securityName = SteveConfiguration.CONFIG.getWebApi().getHeaderKey();
String securityName = "basicAuth";

SecurityScheme securityScheme = new SecurityScheme()
.type(SecurityScheme.Type.APIKEY)
.in(SecurityScheme.In.HEADER)
.type(SecurityScheme.Type.HTTP)
.scheme("basic")
.name(securityName);

return new OpenAPI()
Expand Down

0 comments on commit f3910b9

Please sign in to comment.