Skip to content

tcc-tads-univan/api-gateway

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Univan API Gateway

Pra desabilitar o filtro de validaçao JWT, acessar a classe filter.AuthenticationFilter e comentar o metodo filter, conforme exemplo:

public Mono<Void> filter(ServerWebExchange exchange, GatewayFilterChain chain) {
        /*
        ServerHttpRequest request = exchange.getRequest();

        if (this.isAuthorizationHeaderMissing(request)) {
            return this.onError(exchange, HttpStatus.UNAUTHORIZED, "Authorization header is missing in request");
        }

        final String token = this.getAuthHeader(request);

        if (jwtService.isInvalid(token)) {
            return this.onError(exchange, HttpStatus.UNAUTHORIZED, "Authorization header is invalid");
        }

        this.populateRequestWithHeaders(exchange, token);
        */
        return chain.filter(exchange);
}

Referências

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks