Compare commits

...

7 commits

Author SHA1 Message Date
aldemirm 86dcc68825 refactoring 2026-09-04 12:37:13 +02:00
aldemirm c2c1e334c7 gitignore 2026-09-04 12:31:02 +02:00
aldemirm e0995dafbc chore: ignore build and gradle temporary directories 2026-09-04 12:28:06 +02:00
aldemirm dee5d95e7a added gitignore 2026-09-04 12:27:29 +02:00
aldemirm 8458d6a3f1 changed username, add UserTable to SchemaUtils 2026-09-04 12:23:20 +02:00
aldemirm b1448884c6 changed username, add UserTable to SchemaUtils 2026-09-04 12:21:51 +02:00
aldemirm cb03279c6d feat: add user authentication and protect endpoints with JWT
Added UsersTable to Exposed database schema

Updated KidioRepository interface and implementations for auth methods

Updated Ktor routing, application setup, and integration tests for JWT auth
2026-09-04 11:35:46 +02:00
273 changed files with 291 additions and 1940 deletions

13
.gitignore vendored Normal file
View file

@ -0,0 +1,13 @@
# Gradle Build-Ordner
build/
.gradle/
# Build-Ordner von Submodulen (falls vorhanden)
*/build/
# IntelliJ / IDE Dateien
.idea/
*.iml
*.iws
*.ipr
out/

Binary file not shown.

View file

@ -1,2 +0,0 @@
#Wed Sep 02 15:03:29 CEST 2026
gradle.version=9.5.1

Binary file not shown.

1
.idea/.name Normal file
View file

@ -0,0 +1 @@
Kidio_backend

View file

@ -0,0 +1,10 @@
<component name="ProjectCodeStyleConfiguration">
<code_scheme name="Project" version="173">
<JetCodeStyleSettings>
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</JetCodeStyleSettings>
<codeStyleSettings language="kotlin">
<option name="CODE_STYLE_DEFAULTS" value="KOTLIN_OFFICIAL" />
</codeStyleSettings>
</code_scheme>
</component>

View file

@ -0,0 +1,5 @@
<component name="ProjectCodeStyleConfiguration">
<state>
<option name="USE_PER_PROJECT_SETTINGS" value="true" />
</state>
</component>

8
.idea/modules.xml Normal file
View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/modules/Kidio_backend.iml" filepath="$PROJECT_DIR$/.idea/modules/Kidio_backend.iml" />
</modules>
</component>
</project>

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<module version="4">
<component name="AdditionalModuleElements">
<content url="file://$MODULE_DIR$/../.." dumb="true">
<excludeFolder url="file://$MODULE_DIR$/../dataSources" />
</content>
</component>
</module>

View file

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?> <?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="VcsDirectoryMappings"> <component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="Git" /> <mapping directory="" vcs="Git" />
</component> </component>
</project> </project>

View file

@ -19,11 +19,17 @@ dependencies {
implementation(ktorLibs.server.config.yaml) implementation(ktorLibs.server.config.yaml)
implementation(ktorLibs.server.core) implementation(ktorLibs.server.core)
implementation(ktorLibs.server.netty) implementation(ktorLibs.server.netty)
// JWT Authentication (NEU)
implementation("io.ktor:ktor-server-auth")
implementation("io.ktor:ktor-server-auth-jwt")
implementation(libs.logback.classic) implementation(libs.logback.classic)
// JSON-Unterstützung und Serialization // JSON-Unterstützung und Serialization
implementation("io.ktor:ktor-server-content-negotiation-jvm") implementation("io.ktor:ktor-server-content-negotiation-jvm")
implementation("io.ktor:ktor-serialization-kotlinx-json-jvm") implementation("io.ktor:ktor-serialization-kotlinx-json-jvm")
// postgres // postgres
implementation("org.postgresql:postgresql:42.7.3") implementation("org.postgresql:postgresql:42.7.3")
implementation("org.jetbrains.exposed:exposed-core:0.50.0") implementation("org.jetbrains.exposed:exposed-core:0.50.0")
@ -35,4 +41,5 @@ dependencies {
// redis // redis
implementation("redis.clients:jedis:5.1.2") implementation("redis.clients:jedis:5.1.2")
implementation("org.jetbrains.exposed:exposed-java-time:0.50.0")
} }

Some files were not shown because too many files have changed in this diff Show more