feat: 구글 로그인 — 로그인 창에 구글로 계속하기 버튼, 서버가 구글 ID 토큰 서명·클라이언트 ID·만료를 확인, 처음이면 자동 닉네임으로 가입(구글 이름·이메일은 저장 안 함)

This commit is contained in:
minaChoi committed 2026-10-21 08:52:34 +09:00
1 parent eb2151164f
commit 4e9b0bacba
15 files changed
+407 -13

No files matched your search

+10
View File
@@ -1,5 +1,7 @@
from typing import Optional
from pydantic import Field
from common.enums import AuthProvider
from common.models.gmodel import Req_WebPacketProtocol, Res_WebPacketProtocol, WebPacketProtocol
@@ -15,6 +17,10 @@ class Req_Login(Req_WebPacketProtocol):
password: str
class Req_Google(Req_WebPacketProtocol):
credential: str = Field(min_length=20, max_length=4096, description="구글 로그인 버튼이 준 ID 토큰")
class Req_Refresh(Req_WebPacketProtocol):
refresh_token: str
@@ -47,3 +53,7 @@ class Res_Logout(Res_WebPacketProtocol):
class Res_Me(Res_WebPacketProtocol):
me: Optional[Me] = None
class Res_AuthConfig(Res_WebPacketProtocol):
google_client_id: Optional[str] = Field(None, description="구글 로그인 버튼에 쓸 OAuth 클라이언트 ID. 없으면 구글 로그인을 숨긴다")