#Cloud Foundry Angular Example
This is one of three projects referenced by spring-attic/spring-security-oauth#1676
- https://github.com/smitchell/cloud-foundry-angular-example
- https://github.com/smitchell/spring-boot-netflix-zuul-proxy
- https://github.com/smitchell/spring-security-5-upgrade_sso-auth-server
- mvn spring-boot:run
- Angular - Open the Angular App directly: http://localhost:4200/angular-example/
- Authentication Server - Get an access token from the auth server using the curl command below
- Proxy with SSO - Access the Angular App via the proxy: http://localhost:8085/angular-example
curl --user zuul-proxy-example:client-secret /
http://localhost:8084/oauth/token /
-d 'grant_type=password&client_id=zuul-proxy-example&username=user&password=password'
- User tries to access the Angular site via an SSO-enabled proxy server, http://localhost:8085/angular-example/
- Spring Security on the proxy server redirects the user's browser to the Login page on the authentication server.
- The user signs in and posts the Login form to the authentication server.
- The authentication server redirects the user to the proxy server third-party oauth page.
- User clicks Agree
- The http://localhost:8085/angular-example/ is displayed.
- User tries to access the Angular site via an SSO-enabled proxy server, http://localhost:8085/angular-example/
- Spring Security on the proxy server redirects the user's browser to the Login page on the authentication server.
- The user signs in and posts the Login form to the authentication server.
- The authentication server redirects the user to http://localhost:8085/angular-example/.