🚧 Add auth challenge
This commit is contained in:
parent
de1f8ff108
commit
4f6f71ecd5
@ -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"));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -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;
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user