🚧 Add auth challenge
This commit is contained in:
parent
de1f8ff108
commit
4f6f71ecd5
@ -48,6 +48,6 @@ public class CustomAuthenticationMechanism implements HttpAuthenticationMechanis
|
||||
@Override
|
||||
public Uni<ChallengeData> getChallenge(RoutingContext context)
|
||||
{
|
||||
return Uni.createFrom().nullItem();
|
||||
return Uni.createFrom().item(new ChallengeData(401, "WWW-Authenticate", "Basic"));
|
||||
}
|
||||
}
|
||||
|
||||
@ -30,9 +30,6 @@ import java.util.Optional;
|
||||
@ApplicationScoped
|
||||
public class Service
|
||||
{
|
||||
@Inject
|
||||
VersionService versionService;
|
||||
|
||||
@Inject
|
||||
ArtifactService artifactService;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user