Add user table and insert a fake user with a base password. Also implement authentication filters but they weren't tested.

This commit is contained in:
2025-01-30 16:57:32 +01:00
parent cf9c642665
commit d6ac50f551
10 changed files with 345 additions and 4 deletions

22
pom.xml
View File

@ -39,6 +39,10 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<dependency>
<groupId>org.flywaydb</groupId>
<artifactId>flyway-database-postgresql</artifactId>
@ -73,6 +77,23 @@
<artifactId>swagger-models</artifactId>
<version>2.2.28</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-api</artifactId>
<version>0.11.5</version>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-impl</artifactId>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt-jackson</artifactId>
<version>0.11.5</version>
<scope>runtime</scope>
</dependency>
<dependency>
@ -163,6 +184,7 @@
<configuration>
<inputSpec>${project.basedir}/openapi.yml</inputSpec>
<generatorName>spring</generatorName>
<packageName>ch.dlmw.gen</packageName>
<configOptions>
<interfaceOnly>true</interfaceOnly>
<useSpringBoot3>true</useSpringBoot3>