Zuul as a business gateway needs to control its internal services, the use of OAUTH2 resources server integration into the Zuul can be very good protection of Zuul internal services, need to build a service registry, certification center, authentication Center, three major sections, The authentication center is integrated with Zuul to act as a façade design, Zuul to determine which services need token which do not need.
Service registry: Drei-eureka-server, this project is a eureka-server server, Eureka Client implements the Ribbon load balancing through the service name, specifically.
Certification Center: Drei-auth-server, this project combines the functions of the spring Cloud Oauth2 authentication server to distribute tokens, and this certification center is incorporated into the service registry for high availability.
Authentication Center: Drei-api-gateway, this project for the Business Gateway is also a resource server, you can access a variety of micro-service sub-projects, through the configuration of Authorizeconfigprovider to achieve specific authentication or decentralization functions.
Open Source project: Https://gitee.com/234gdfgsdf/drei-wolke-platform/tree/master/drei-api-gateway
Contact Author qq:624191343 1758783856
Code Analysis for the integrated Zuul Gateway of Spring Security OAUTH2 Certification Center