From 424be68a3f65da37127cc5cab9dd01678069930a Mon Sep 17 00:00:00 2001 From: Alva Chien Date: Tue, 6 Dec 2022 22:50:59 +0800 Subject: [PATCH] Prepare add registeration --- auth-server-demo/pom.xml | 15 +++++++++++++++ readme.md | 7 +++++++ .../controller/NonProtectedController.java | 2 -- 3 files changed, 22 insertions(+), 2 deletions(-) diff --git a/auth-server-demo/pom.xml b/auth-server-demo/pom.xml index ea4bf3b..3158c9e 100644 --- a/auth-server-demo/pom.xml +++ b/auth-server-demo/pom.xml @@ -40,6 +40,15 @@ spring-security-oauth2-authorization-server 1.0.0 + + org.springframework.boot + spring-boot-starter-thymeleaf + + + org.springframework.boot + spring-boot-starter-validation + + com.microsoft.sqlserver mssql-jdbc @@ -55,6 +64,12 @@ org.springframework.boot spring-boot-starter-test test + + + org.junit.vintage + junit-vintage-engine + + diff --git a/readme.md b/readme.md index c69e33c..629d746 100644 --- a/readme.md +++ b/readme.md @@ -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) - [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) +- [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? @@ -39,6 +41,11 @@ Dependencies: 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: - Java 17; - Spring Boot 3.0; diff --git a/resource-server-demo/src/main/java/com/poc/alvachien/resourceserverdemo/controller/NonProtectedController.java b/resource-server-demo/src/main/java/com/poc/alvachien/resourceserverdemo/controller/NonProtectedController.java index 4be64be..34e644f 100644 --- a/resource-server-demo/src/main/java/com/poc/alvachien/resourceserverdemo/controller/NonProtectedController.java +++ b/resource-server-demo/src/main/java/com/poc/alvachien/resourceserverdemo/controller/NonProtectedController.java @@ -3,8 +3,6 @@ package com.poc.alvachien.resourceserverdemo.controller; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RestController; -import org.springframework.web.bind.annotation.RequestParam; - @RestController @RequestMapping("/api/NonProtected") -- GitLab