All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.quarkus.resteasy.reactive.server.runtime.exceptionmappers.UnauthorizedExceptionMapper 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.UnauthorizedException;
import io.smallrye.mutiny.Uni;
import io.vertx.ext.web.RoutingContext;

public class UnauthorizedExceptionMapper {

    @ServerExceptionMapper(value = UnauthorizedException.class, priority = Priorities.USER + 1)
    public Uni handle(RoutingContext routingContext) {
        return SecurityExceptionMapperUtil.handleWithAuthenticator(routingContext);
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy