feat: OMS(orderlist)와 SSO 호환되도록 세션 계약 정렬

- 세션 쿠키 이름을 SESSION_COOKIE_NAME env 로 OMS 와 통일
- 로그인 성공 시 top-level user_email / user_name 키도 함께 저장
- get_user() 가 OMS 가 만든 SSO 세션(top-level email만 있는 경우)도 인정
- /login 에 ?next= 지원 (open redirect 방지 위해 같은 호스트 절대경로만 허용)
This commit is contained in:
2026-05-24 05:38:43 +09:00
parent 023ce80d59
commit e33cc8686b
2 changed files with 40 additions and 4 deletions
+2
View File
@@ -1,6 +1,8 @@
GOOGLE_CLIENT_ID=your-google-oauth-client-id.apps.googleusercontent.com
GOOGLE_CLIENT_SECRET=your-google-oauth-client-secret
# OMS(orderlist) 와 SSO 하려면 양쪽 .env 에 동일한 값으로 설정
SESSION_SECRET_KEY=replace-with-a-long-random-secret
SESSION_COOKIE_NAME=session
SESSION_COOKIE_SECURE=true
PUBLIC_BASE_URL=https://dbx.no1king.freeddns.org
CS_ORDER_URL=https://cs.example.com