🚧 Add auth challenge

This commit is contained in:
Andreas Dinauer 2026-04-19 17:18:36 +02:00
parent de1f8ff108
commit 4f6f71ecd5
2 changed files with 1 additions and 4 deletions

View File

@ -48,6 +48,6 @@ public class CustomAuthenticationMechanism implements HttpAuthenticationMechanis
@Override @Override
public Uni<ChallengeData> getChallenge(RoutingContext context) public Uni<ChallengeData> getChallenge(RoutingContext context)
{ {
return Uni.createFrom().nullItem(); return Uni.createFrom().item(new ChallengeData(401, "WWW-Authenticate", "Basic"));
} }
} }

View File

@ -30,9 +30,6 @@ import java.util.Optional;
@ApplicationScoped @ApplicationScoped
public class Service public class Service
{ {
@Inject
VersionService versionService;
@Inject @Inject
ArtifactService artifactService; ArtifactService artifactService;