Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
dcdec09
fix(authz): update OAuth bypass paths for new route structure
mangowhoiscloud Jan 2, 2026
c5a8223
feat(auth): add legacy OAuth routes for backward compatibility
mangowhoiscloud Jan 2, 2026
df25844
Merge branch 'develop' into feat/users-migration
mangowhoiscloud Jan 2, 2026
e15de40
fix(auth): CORS allow specific origins instead of wildcard
mangowhoiscloud Jan 2, 2026
dd40279
style: apply black formatting
mangowhoiscloud Jan 2, 2026
724c395
fix(auth): 레거시 OAuth 엔드포인트 JSON 응답으로 변경
mangowhoiscloud Jan 2, 2026
1804fa5
Merge branch 'develop' into feat/users-migration
mangowhoiscloud Jan 2, 2026
06f0c27
fix(auth): /{provider}/login도 JSON 응답으로 통일
mangowhoiscloud Jan 2, 2026
b62aaa1
fix(auth): protobuf 버전 체크 비활성화
mangowhoiscloud Jan 2, 2026
b5dc89b
Merge branch 'develop' into feat/users-migration
mangowhoiscloud Jan 2, 2026
2bf6fe9
fix(auth): users_pb2_grpc import 경로 수정
mangowhoiscloud Jan 2, 2026
55d0943
fix(auth): UsersManagementGatewayGrpc 이름 통일
mangowhoiscloud Jan 2, 2026
0db0384
fix(users-grpc): ErrorHandlerInterceptor에서 context.method() 호출 버그 수정
mangowhoiscloud Jan 2, 2026
7302091
fix(users): SqlaTransactionManager에 begin() 메소드 추가
mangowhoiscloud Jan 2, 2026
165418a
fix(users): OAuth provider enum 매핑 수정 - 소문자 값 사용
mangowhoiscloud Jan 2, 2026
8e84585
fix: auth → users gRPC NetworkPolicy 및 DestinationRule 추가
mangowhoiscloud Jan 2, 2026
9e89b1c
fix(auth): OAuthUserResult에서 username 필드 제거
mangowhoiscloud Jan 2, 2026
8ec7f61
fix(auth): LoginAudit dataclass에서 frozen=True 제거
mangowhoiscloud Jan 2, 2026
5ced4d6
fix(auth): OAuth 실패 시 리다이렉트 URL 수정
mangowhoiscloud Jan 2, 2026
1d2e35f
fix(auth): 쿠키를 RedirectResponse에 직접 설정하여 OAuth 후 쿠키 전달 문제 해결
mangowhoiscloud Jan 2, 2026
8b48069
fix(auth): 쿠키 도메인 환경변수 이름 수정 (COOKIE_DOMAIN -> AUTH_COOKIE_DOMAIN)
mangowhoiscloud Jan 2, 2026
4afd6eb
fix(auth): UsersQueryGateway에서 selectinload 제거 (relationship 미설정 버그)
mangowhoiscloud Jan 2, 2026
cd091da
fix(auth): User 엔티티에 __weakref__ 슬롯 추가 (SQLAlchemy 호환)
mangowhoiscloud Jan 2, 2026
6de4489
fix(auth): 쿠키 이름을 프론트엔드와 일치하도록 수정 (s_access, s_refresh)
mangowhoiscloud Jan 2, 2026
af3232d
fix(auth): logout/refresh를 헤더에서 토큰 읽도록 수정 (EnvoyFilter 호환)
mangowhoiscloud Jan 2, 2026
09701c8
fix(auth): logout 응답을 domains와 동일하게 수정 (LogoutSuccessResponse)
mangowhoiscloud Jan 2, 2026
a42f039
fix: merge conflict 해결
mangowhoiscloud Jan 2, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions apps/auth/presentation/http/controllers/auth/logout.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from apps.auth.application.token.commands import LogoutInteractor
from apps.auth.application.token.dto import LogoutRequest
from apps.auth.presentation.http.auth.cookie_params import clear_auth_cookies
from apps.auth.presentation.http.schemas.auth import TokenResponse
from apps.auth.presentation.http.schemas.auth import LogoutData, LogoutSuccessResponse
from apps.auth.setup.dependencies import get_logout_interactor

router = APIRouter()
Expand All @@ -28,15 +28,15 @@ def _parse_bearer(header_value: Optional[str]) -> Optional[str]:

@router.post(
"/logout",
response_model=TokenResponse,
response_model=LogoutSuccessResponse,
summary="로그아웃",
)
async def logout(
response: Response,
authorization: Optional[str] = Header(None, alias="Authorization"),
refresh_authorization: Optional[str] = Header(None, alias="X-Refresh-Token"),
interactor: LogoutInteractor = Depends(get_logout_interactor),
) -> TokenResponse:
) -> LogoutSuccessResponse:
"""로그아웃을 처리합니다.

EnvoyFilter가 쿠키를 헤더로 변환:
Expand All @@ -59,4 +59,4 @@ async def logout(
# 쿠키 삭제
clear_auth_cookies(response)

return TokenResponse(message="Logged out successfully")
return LogoutSuccessResponse(data=LogoutData())
12 changes: 12 additions & 0 deletions apps/auth/presentation/http/schemas/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,15 @@ class TokenResponse(BaseModel):
"""토큰 응답 (쿠키로 전달되므로 body는 간소화)."""

message: str = Field(default="success", description="결과 메시지")


class LogoutData(BaseModel):
"""로그아웃 응답 데이터."""

message: str = Field(default="Successfully logged out", description="결과 메시지")


class LogoutSuccessResponse(SuccessResponse[LogoutData]):
"""레거시 호환용 로그아웃 응답."""

pass