# Simple-Example-OAuth2-With-Spring-cloud-Eureka-Ribbon-Zuul **Repository Path**: hjes/Simple-Example-OAuth2-With-Spring-cloud-Eureka-Ribbon-Zuul ## Basic Information - **Project Name**: Simple-Example-OAuth2-With-Spring-cloud-Eureka-Ribbon-Zuul - **Description**: Simple example OAuth2 architecture microservices With Spring cloud Eureka Ribbon Zuul - **Primary Language**: Java - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2019-05-08 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README **Spring Boot 1.5.10** Run all applications: - discovery-service-eureka (first in order!) (8761 port) - auth-server (9090 port) - resource-server (can run several instances for different ports, will be load balancing) - gateway-ui-container (7070 port) Go to http://localhost:7070/resource/swagger-ui.html and test it. Mocked username and password described inside com.lungesoft.architecture.oauth.server.service.UserServiceMock: - admin admin - user user _Code contains some tips for auth customization, marked with CAN-TODO comment_ **Gateway-ui-container** - Available for user. - here you put static js/css/html content - send ajax request to proxied /resource/** url For example: 1. Your rest api has resource on resource-server: http://localhost:8080/rest/project/ 2. To retrieve it from resource server do ajax request to /resource/rest/project/ (http://localhost:7070/resource/rest/project/) without thinking about Authentication Bearer token or CORS.