|
@@ -42,6 +42,7 @@ import org.maxkey.authn.support.jwt.JwtLoginService;
|
|
|
import org.maxkey.authn.support.socialsignon.service.SocialsAssociate;
|
|
|
import org.maxkey.constants.ConstantsLoginType;
|
|
|
import org.maxkey.constants.ConstantsPasswordSetType;
|
|
|
+import org.maxkey.entity.HistoryLogin;
|
|
|
import org.maxkey.entity.HistoryLogs;
|
|
|
import org.maxkey.entity.SocialsProvider;
|
|
|
import org.maxkey.entity.UserInfo;
|
|
@@ -97,8 +98,6 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint
|
|
|
@Autowired
|
|
|
RedisConnectionFactory redisConnectionFactory;
|
|
|
|
|
|
- @Autowired
|
|
|
- LoginHistoryService loginHistoryService;
|
|
|
|
|
|
|
|
|
final static Logger _logger = LoggerFactory.getLogger(SocialSignOnEndpoint.class);
|
|
@@ -360,8 +359,7 @@ public class SocialSignOnEndpoint extends AbstractSocialSignOnEndpoint
|
|
|
redisConnection.setex(ticket, 60 * 60 * 24 * 1, result.toJSONString());
|
|
|
redisConnection.close();
|
|
|
_logger.debug("token >>>" + token);
|
|
|
- // 拼接 sessionid
|
|
|
- loginHistoryService.login(userInfo,WebContext.genId(), ConstantsLoginType.JWT,"","",provider,"","",1);
|
|
|
+
|
|
|
// TODO 整合前端的地址
|
|
|
return WebContext.redirect(curl + ticket + "&sessionId="+ WebContext.getSession().getId());
|
|
|
} else
|