io.quarkus.resteasy.reactive.server.runtime.exceptionmappers.AuthenticationFailedExceptionMapper Maven / Gradle / Ivy
package io.quarkus.resteasy.reactive.server.runtime.exceptionmappers;
import jakarta.ws.rs.Priorities;
import jakarta.ws.rs.core.Response;
import org.jboss.resteasy.reactive.server.ServerExceptionMapper;
import io.quarkus.security.AuthenticationFailedException;
import io.smallrye.mutiny.Uni;
import io.vertx.ext.web.RoutingContext;
public class AuthenticationFailedExceptionMapper {
@ServerExceptionMapper(value = AuthenticationFailedException.class, priority = Priorities.USER + 1)
public Uni handle(RoutingContext routingContext) {
return SecurityExceptionMapperUtil.handleWithAuthenticator(routingContext);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy