Skip to content

Commit

Permalink
Merge pull request quarkusio#37032 from phillip-kruger/openapi-basic-…
Browse files Browse the repository at this point in the history
…auth

OpenAPI make sure basic auth auto detection work
  • Loading branch information
phillip-kruger authored Nov 14, 2023
2 parents a65d609 + 055978e commit b2798b8
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,10 @@ AdditionalBeanBuildItem initBasicAuth(HttpBuildTimeConfig buildTimeConfig,
.appliedToClass()
.whenClass(cl -> BASIC_AUTH_MECH_NAME.equals(cl.name()))
.thenTransform(t -> t.add(DEFAULT_BEAN))));
if (buildTimeConfig.auth.basic.isPresent() && buildTimeConfig.auth.basic.get()) {
securityInformationProducer.produce(SecurityInformationBuildItem.BASIC());
}
}

if (buildTimeConfig.auth.basic.isPresent() && buildTimeConfig.auth.basic.get()) {
securityInformationProducer.produce(SecurityInformationBuildItem.BASIC());
}

return AdditionalBeanBuildItem.builder().setUnremovable().addBeanClass(BasicAuthenticationMechanism.class).build();
Expand Down

0 comments on commit b2798b8

Please sign in to comment.