Refactor Steam login initialization to remove unnecessary response and add nonce handling
All checks were successful
CI - Build and Push / Build and Push Docker Image (push) Successful in 1m5s

This commit is contained in:
2025-10-08 12:11:06 +08:00
parent 8cd358fcda
commit 5afd712701
9 changed files with 67 additions and 21 deletions

View File

@@ -17,9 +17,7 @@ type (
type (
SteamLoginInitReq {}
SteamLoginInitResp {
RedirectUrl string `json:"redirectUrl"`
}
// No response needed - endpoint will redirect directly
)
type (
@@ -55,10 +53,10 @@ service Authenticator {
@doc (
summary: "Initiate Steam login"
description: "Redirects user to Steam OpenID login page"
description: "Redirects user to Steam OpenID login page with nonce for security"
)
@handler steamLoginInitHandler
get /steam/login (SteamLoginInitReq) returns (SteamLoginInitResp)
get /steam/login (SteamLoginInitReq)
@doc (
summary: "Steam login callback"