提交 424be68a 编写于 作者: alvachien's avatar alvachien

Prepare add registeration

上级 c088f62a
...@@ -40,6 +40,15 @@ ...@@ -40,6 +40,15 @@
<artifactId>spring-security-oauth2-authorization-server</artifactId> <artifactId>spring-security-oauth2-authorization-server</artifactId>
<version>1.0.0</version> <version>1.0.0</version>
</dependency> </dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>
<dependency> <dependency>
<groupId>com.microsoft.sqlserver</groupId> <groupId>com.microsoft.sqlserver</groupId>
<artifactId>mssql-jdbc</artifactId> <artifactId>mssql-jdbc</artifactId>
...@@ -55,6 +64,12 @@ ...@@ -55,6 +64,12 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-test</artifactId> <artifactId>spring-boot-starter-test</artifactId>
<scope>test</scope> <scope>test</scope>
<exclusions>
<exclusion>
<groupId>org.junit.vintage</groupId>
<artifactId>junit-vintage-engine</artifactId>
</exclusion>
</exclusions>
</dependency> </dependency>
</dependencies> </dependencies>
......
...@@ -20,6 +20,8 @@ This article adds the JPA implementations to client/authorization/authorization- ...@@ -20,6 +20,8 @@ This article adds the JPA implementations to client/authorization/authorization-
- [Spring Security: Authentication with a Database-backed UserDetailsService](https://www.baeldung.com/spring-security-authentication-with-a-database) - [Spring Security: Authentication with a Database-backed UserDetailsService](https://www.baeldung.com/spring-security-authentication-with-a-database)
- [Password storage](https://docs.spring.io/spring-security/reference/features/authentication/password-storage.html) - [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) - [Spring Security Architecture](https://docs.spring.io/spring-security/reference/servlet/architecture.html)
- [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)
- [Source repository](git@github.com:RameshMF/registration-login-springboot-security-thymeleaf.git)
To be read? To be read?
...@@ -39,6 +41,11 @@ Dependencies: ...@@ -39,6 +41,11 @@ Dependencies:
Resource server. Resource server.
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)
Dependencies: Dependencies:
- Java 17; - Java 17;
- Spring Boot 3.0; - Spring Boot 3.0;
......
...@@ -3,8 +3,6 @@ package com.poc.alvachien.resourceserverdemo.controller; ...@@ -3,8 +3,6 @@ package com.poc.alvachien.resourceserverdemo.controller;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController; import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.bind.annotation.RequestParam;
@RestController @RestController
@RequestMapping("/api/NonProtected") @RequestMapping("/api/NonProtected")
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册