readme.md 3.4 KB
Newer Older
alvachien's avatar
alvachien 已提交
1 2 3 4 5 6
# spring-auth-server-demo

It's a demo project for spring-auth-server.

This project consist of following three sub-projects.

alvachien's avatar
alvachien 已提交
7
## auth-server-demo
alvachien's avatar
alvachien 已提交
8 9 10

Auth. server, including identity management.

alvachien's avatar
alvachien 已提交
11 12 13 14 15 16
This project embeds the learnings through the following documents:
- [How-to: Implement core services with JPA](https://docs.spring.io/spring-authorization-server/docs/current/reference/html/guides/how-to-jpa.html)
This article adds the JPA implementations to client/authorization/authorization-consent
- [How-to: Customize the OpenID Connect 1.0 UserInfo response](https://docs.spring.io/spring-authorization-server/docs/current/reference/html/guides/how-to-userinfo.html)
    - [OidcUserInfo](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/oauth2/core/oidc/OidcUserInfo.html)
    - [OidcUserInfo.Builder](https://docs.spring.io/spring-security/site/docs/current/api/org/springframework/security/oauth2/core/oidc/OidcUserInfo.Builder.html)
alvachien's avatar
alvachien 已提交
17
- [Spring Security: Authentication - JDBC Authentication](https://docs.spring.io/spring-security/reference/servlet/authentication/passwords/jdbc.html#servlet-authentication-jdbc-schema)
alvachien's avatar
alvachien 已提交
18 19 20 21
- [Spring Authorization Server Tutorial](https://www.appsdeveloperblog.com/spring-authorization-server-tutorial/)
- [Add Roles to JWT Issued by Spring Authorization Server](https://www.appsdeveloperblog.com/add-roles-to-jwt-issued-by-new-spring-authorization-server/)
- [Role-based Access Control in Spring Authorization Server](https://www.appsdeveloperblog.com/role-based-access-control-in-spring-authorization-server/)
- [Spring Security: Authentication with a Database-backed UserDetailsService](https://www.baeldung.com/spring-security-authentication-with-a-database)
alvachien's avatar
alvachien 已提交
22 23
- [Password storage](https://docs.spring.io/spring-security/reference/features/authentication/password-storage.html)
- [Spring Security Architecture](https://docs.spring.io/spring-security/reference/servlet/architecture.html)
alvachien's avatar
alvachien 已提交
24
- [Registration Login example using Spring Boot/Spring Security/JPA/MySql/Thymeleaf](https://www.javaguides.net/2019/08/registration-login-example-using-springboot-spring-data-jpa-hibernate-mysql-thymeleaf.html)
alvachien's avatar
alvachien 已提交
25
    - [Source repository](https://github.com/RameshMF/registration-login-springboot-security-thymeleaf)
alvachien's avatar
alvachien 已提交
26 27
- [Spring Boot + Spring Security + Thymeleaf](https://www.jianshu.com/p/dcf227d53ab5)
    - [Source repository](https://github.com/Smith-Cruise/Spring-Boot-Security-Thymeleaf-Demo)
alvachien's avatar
alvachien 已提交
28 29 30 31 32


To be read?
- [Spring Security ACL](https://www.jianshu.com/p/b971b4e6ec16)

alvachien's avatar
alvachien 已提交
33

alvachien's avatar
alvachien 已提交
34 35 36 37 38 39
Dependencies:
- Java 17;
- Spring Boot 3.0;
    - Spring Boot JPA;
    - Spring Boot Web;
- SQL Server 2019;
alvachien's avatar
alvachien 已提交
40
- Spring Auth Server;
alvachien's avatar
alvachien 已提交
41

alvachien's avatar
alvachien 已提交
42
## idp-server-demo
alvachien's avatar
alvachien 已提交
43

alvachien's avatar
alvachien 已提交
44 45 46 47 48 49 50 51 52 53 54
Identity server demo.

Dependencies:
- Java 17;
- Spring Boot 3.0;
    - Spring Boot JPA;
    - Spring Boot Web;
- SQL Server 2019;
- Spring Auth Server;

## resource-server-demo
alvachien's avatar
alvachien 已提交
55 56 57

Resource server.

alvachien's avatar
alvachien 已提交
58 59 60 61 62
Related documents:   
- [Spring Boot Resource Server](https://docs.spring.io/spring-security/reference/servlet/oauth2/resource-server/index.html)
- [Resource Server samples](https://github.com/spring-projects/spring-security-samples/tree/main/servlet/spring-boot/java/oauth2/resource-server)


alvachien's avatar
alvachien 已提交
63 64 65 66 67 68 69 70
Dependencies:
- Java 17;
- Spring Boot 3.0;
    - Spring Boot JPA;
    - Spring Boot Web;
- SQL Server 2019;
- Resource Server;

alvachien's avatar
alvachien 已提交
71

alvachien's avatar
alvachien 已提交
72 73 74 75 76 77 78 79
## angular-client-demo

An angular client which consume that resources.

Dependencies:
- Angular 14;
- Typescript 4.6.2;