forked from baron/baron-sso
userfront 연동이력 맞춤
This commit is contained in:
@@ -135,7 +135,8 @@ func (d *DescopeProvider) SignIn(loginID, password string) (*domain.AuthInfo, er
|
||||
Expiration: time.Unix(authInfo.SessionToken.Expiration, 0),
|
||||
SessionID: authInfo.SessionToken.ID,
|
||||
},
|
||||
Subject: authInfo.User.UserID,
|
||||
// 내부 식별자는 Kratos identity ID로 통일합니다.
|
||||
Subject: "",
|
||||
}
|
||||
if authInfo.RefreshToken != nil {
|
||||
res.RefreshToken = &domain.Token{
|
||||
@@ -204,7 +205,8 @@ func (d *DescopeProvider) IssueSession(loginID string) (*domain.AuthInfo, error)
|
||||
Expiration: time.Unix(authInfo.SessionToken.Expiration, 0),
|
||||
SessionID: authInfo.SessionToken.ID,
|
||||
},
|
||||
Subject: authInfo.User.UserID,
|
||||
// 내부 식별자는 Kratos identity ID로 통일합니다.
|
||||
Subject: "",
|
||||
}
|
||||
if authInfo.RefreshToken != nil {
|
||||
res.RefreshToken = &domain.Token{
|
||||
|
||||
Reference in New Issue
Block a user