类 WechatLoginCallback
java.lang.Object
com.iplatform.base.callback.GeneralLoginCallback
com.iplatform.security.callback.SimplePasswordLoginCallback
com.iplatform.security.callback.WechatLoginCallback
- 所有已实现的接口:
PlatformLoginCallback,com.walker.infrastructure.ApplicationCallback
微信授权登录,目前公众号H5自动登录使用。
1)前端处理微信对接获取accessToken;
2)调用后台接口登录,后台组织参数,密码从数据库查询出来,
3)因此密码直接就是加密的,直接比对就行(相等的)
- 作者:
- 时克英
-
字段概要
从类继承的字段 com.iplatform.security.callback.SimplePasswordLoginCallback
passwordEncoder从类继承的字段 com.iplatform.base.callback.GeneralLoginCallback
logger, userService -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明booleanbooleanvalidatePassword(com.walker.web.UserPrincipal<com.iplatform.model.po.S_user_core> userPrincipal) 从类继承的方法 com.iplatform.security.callback.SimplePasswordLoginCallback
queryLoginUser, setPasswordEncoder从类继承的方法 com.iplatform.base.callback.GeneralLoginCallback
getCaptchaProvider, onLogout, setCaptchaProvider, setTokenGenerator, setUserOnlineProvider, setUserService, supportMultiple
-
构造器详细资料
-
WechatLoginCallback
public WechatLoginCallback()
-
-
方法详细资料
-
validatePassword
public boolean validatePassword(com.walker.web.UserPrincipal<com.iplatform.model.po.S_user_core> userPrincipal) - 指定者:
validatePassword在接口中PlatformLoginCallback- 覆盖:
validatePassword在类中SimplePasswordLoginCallback
-
isValidateCaptcha
public boolean isValidateCaptcha()- 指定者:
isValidateCaptcha在接口中PlatformLoginCallback- 覆盖:
isValidateCaptcha在类中GeneralLoginCallback
-