|
@@ -60,6 +60,19 @@ public class CredentialAuthProvider implements AuthenticationProvider { |
|
|
user = userDetailsService.loadUserByUsername(accountId + UserDeatilsServiceConstant.USER_DETAILS_SERVICE_SEPARATOR + loginTypeEnum.name()); |
|
|
user = userDetailsService.loadUserByUsername(accountId + UserDeatilsServiceConstant.USER_DETAILS_SERVICE_SEPARATOR + loginTypeEnum.name()); |
|
|
} |
|
|
} |
|
|
break; |
|
|
break; |
|
|
|
|
|
case DING_MD_LOGIN: { |
|
|
|
|
|
String code = (String) authenticationToken.getCredentials(); |
|
|
|
|
|
GenericResult<String> accountResult = zwddAuthClient.getMobileAccountId(code); |
|
|
|
|
|
if (!accountResult.isSuccess()) { |
|
|
|
|
|
throw new BadCredentialsException("login fail! 浙政钉免登校验失败"); |
|
|
|
|
|
} |
|
|
|
|
|
String accountId = accountResult.getData(); |
|
|
|
|
|
if (Objects.isNull(accountId)) { |
|
|
|
|
|
throw new BadCredentialsException("login fail! 浙政钉免登校验失败"); |
|
|
|
|
|
} |
|
|
|
|
|
user = userDetailsService.loadUserByUsername(accountId + UserDeatilsServiceConstant.USER_DETAILS_SERVICE_SEPARATOR + loginTypeEnum.name()); |
|
|
|
|
|
} |
|
|
|
|
|
break; |
|
|
case PHONE_VERIFICATION_CODE_LOGIN: { |
|
|
case PHONE_VERIFICATION_CODE_LOGIN: { |
|
|
if (!phoneVerifyCodeSkip) { |
|
|
if (!phoneVerifyCodeSkip) { |
|
|
// 校验短信验证码 |
|
|
// 校验短信验证码 |
|
|