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:
- Your rest api has resource on resource-server: http://localhost:8080/rest/project/
- 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.