网关转发oauth2.0 /login没带服务名

可以配置/login /oauth  指向oauth服务器,资源服务器一直报user 时弥明用户,是因为网关转发没有携带请求头 

sensitive-headers: #/oauth/token需要请求头处理

ignored-headers: Access-Control-Allow-Credentials,Access-Control-Allow-Origin,Access-Control-Allow-Methods

add-host-header: true

# add-proxy-headers: true #授权码跳转问题

routes:

auth:

path: /auth/**

service-id: auth-server

strip-prefix: true

custom-sensitive-headers: true #http://blog.didispace.com/spring-cloud-zuul-cookie-redirect/ zuul授权码跳转问题

auth-login

path: /login

service-id: auth-server

strip-prefix: true

custom-sensitive-headers: true

你可能感兴趣的:(网关转发oauth2.0 /login没带服务名)