feat: Create authorization

This commit is contained in:
2026-01-18 22:16:51 +01:00
parent 9d72cda5ff
commit af88f5c559
15 changed files with 794 additions and 12 deletions

View File

@@ -19,9 +19,16 @@ POST /joinGame/:gameId controllers.MainMenuController.joinGame(gam
# User authentication routes
POST /login controllers.UserController.login_Post()
POST /register controllers.UserController.register()
POST /logout controllers.UserController.logoutPost()
GET /userInfo controllers.UserController.getUserInfo()
# OpenID Connect routes
GET /auth/:provider controllers.OpenIDController.loginWithProvider(provider: String)
GET /auth/:provider/callback controllers.OpenIDController.callback(provider: String)
GET /select-username controllers.OpenIDController.selectUsername()
POST /submit-username controllers.OpenIDController.submitUsername()
# In-game routes
GET /game/:id controllers.IngameController.game(id: String)