- Spring REST API + OAuth2 + AngularJS
- Using JWT with Spring Security OAuth
- OAuth2 for a Spring REST API – Handle the Refresh Token in AngularJS
- Spring Security OAuth2 – Simple Token Revocation
- OAuth2.0 and Dynamic Client Registration
- Testing an OAuth Secured API with the Spring MVC Test Support
- Logout in a OAuth Secured Application
- OAuth2 Remember Me with Refresh Token
- Angular 4 Upgrade for Spring Security OAuth
mvn clean install
-
This project consists of 4 main sub-modules, each sub-module is a Spring Boot Application running on specific port
- spring-security-oauth-server (port = 8081)
- spring-security-oauth-resource (port = 8082)
- spring-security-oauth-ui-implicit (port = 8083)
- spring-security-oauth-ui-password (port = 8084)
-
To run the project, run both spring-security-oauth-server and spring-security-oauth-resource first - then run any of the UI modules
-
You can run any sub-module using command line:
mvn spring-boot:run
基于 Anjular 的 SPA, 使用 AJAX 进行登录和退出,不是使用直接跳转到 login page 的方式。