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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user