feat: fix sso internal api, add SsoClientLogin return value

This commit is contained in:
weloe
2023-10-15 01:16:48 +08:00
parent 4e68a5b4f7
commit a0324da6bb
2 changed files with 6 additions and 5 deletions

View File

@@ -100,6 +100,7 @@ func (s *SsoEnforcer) CheckTicketByClient(ticket string, client string) (string,
return "", nil
}
// get client from id
var ticketClient string
if strings.Contains(id, ",") {
split := strings.Split(id, ",")
@@ -155,10 +156,10 @@ func (s *SsoEnforcer) RegisterSloCallbackUrl(loginId string, sloCallbackUrl stri
var v []string
if value != nil {
sv, ok := value.([]string)
v = sv
if !ok {
return errors.New("session SLO_CALLBACK_SET_KEY_ data convert into []string failed")
}
v = sv
}
v = util.AppendStr(v, sloCallbackUrl)