[API] SSO 다중 도메인 로그인 작업 커밋

This commit is contained in:
2026-03-31 11:55:23 +09:00
parent 6e58d57821
commit 07683e843d
24 changed files with 699 additions and 57 deletions
+13 -5
View File
@@ -33,10 +33,10 @@ jwt:
refresh-token-validity-seconds: 2592000
cookie:
secure: false # 로컬 개발 환경 (HTTP)
domain:
name: ALIST_SESSION
same-site: Lax
secure: true # 로컬 개발 환경 (HTTP)
domain: api-alist.pjt.kr
name: ALIST_SSO
same-site: None
swagger:
login:
@@ -57,4 +57,12 @@ springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
enabled: true
sso:
session:
ttl-seconds: 7200
code:
ttl-seconds: 300
cookie:
name: ALIST_SSO
+11 -3
View File
@@ -36,8 +36,8 @@ jwt:
cookie:
secure: true # 프로젝트 환경 (HTTPS)
domain: pjt.kr # sso 인증시 주석해제
name: ALIST_SESSION
domain: api-alist.pjt.kr # sso 인증시 주석해제
name: ALIST_SSO
same-site: None
swagger:
@@ -59,4 +59,12 @@ springdoc:
api-docs:
enabled: true
swagger-ui:
enabled: true
enabled: true
sso:
session:
ttl-seconds: 7200
code:
ttl-seconds: 300
cookie:
name: ALIST_SSO
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.alist.api.modules.auth.mapper.SsoMapper">
<select id="selectSsoClient" resultType="com.alist.api.modules.auth.vo.SsoClientVo">
/*SsoMapper.selectSsoClient*/
SELECT SSO_CLIENT_IDX
, CLIENT_ID
, CLIENT_NAME
, REDIRECT_URI
, MEMO
, USE_YN
FROM SSO_CLIENT
WHERE CLIENT_ID = #{clientId}
AND USE_YN = 'Y'
LIMIT 1
</select>
</mapper>
@@ -315,8 +315,14 @@
AND LFD.STATUS = 3
AND LFM.STATUS = 3
</select>
<select id="selectUserIdxByUserTokenIdx" resultType="java.lang.Integer">
/*FileMapper.selectUserIdxByUserTokenIdx*/
SELECT user_idx
FROM test_user_token
WHERE user_token_idx = #{userTokenIdx}
</select>
<update id="updateFileDetailDeleteByFileUuid">
<update id="updateFileDetailDeleteByFileUuid">
/*FileMapper.updateFileDetailDeleteByFileUuid*/
UPDATE ALISTLMS.FILE_DETAIL LFD
INNER JOIN ALISTLMS.FILE_MASTER LFM
+2
View File
@@ -0,0 +1,2 @@
User-agent: *
Disallow: /