Using Zuul as an authentication gateway

前端 未结 3 1510
轻奢々
轻奢々 2020-12-07 14:30

Background

I want to implement the design presented in this article.

It can be summarised by the diagram below:

  1. The client fi
3条回答
  •  难免孤独
    2020-12-07 15:12

    You could try setting setSendZuulResponse(false) in the current context. This should not route the request. You could also call removeRouteHost() from the context, which would achieve the same. You could usesetResponseStatusCode to set the 401 status code.

提交回复
热议问题