Add JWT-based login flow with key pair generation

Introduced a secure login flow using JWTs with dynamically generated RSA key pairs stored in the database. Updated relevant APIs, database schema, and services to support login codes, JWT encoding, and secret validation.
This commit is contained in:
2025-05-24 01:33:36 +02:00
parent cf758bfe60
commit c4c17b3adc
10 changed files with 295 additions and 7 deletions
+1 -1
View File
@@ -40,5 +40,5 @@ paths:
$ref: './schemas/forms/appeal/appeal.yml#/DiscordAppeal'
/login/requestNewUserLogin/{uuid}:
$ref: './schemas/login/login.yml#/RequestNewUserLogin'
/login/userLogin:
/login/userLogin/{code}:
$ref: './schemas/login/login.yml#/UserLogin'
@@ -35,6 +35,12 @@ RequestNewUserLogin:
description: Request a code, that can be used to log in
operationId: requestLogin
parameters:
- name: Authorization
in: header
required: true
schema:
type: string
description: Secret
- $ref: '../generic/parameters.yml#/components/parameters/Uuid'
responses:
'200':