|
|
@@ -1,6 +1,7 @@
|
|
|
package com.kxs.common.security.support.sms;
|
|
|
|
|
|
import com.kxs.common.core.constant.SecurityConstants;
|
|
|
+import com.kxs.common.core.constant.enums.ErrorTypeEnum;
|
|
|
import com.kxs.common.security.support.base.OAuth2ResourceOwnerBaseAuthenticationProvider;
|
|
|
import org.apache.logging.log4j.LogManager;
|
|
|
import org.apache.logging.log4j.Logger;
|
|
|
@@ -53,7 +54,7 @@ public class OAuth2ResourceOwnerSmsAuthenticationProvider
|
|
|
assert registeredClient != null;
|
|
|
if (!registeredClient.getAuthorizationGrantTypes()
|
|
|
.contains(new AuthorizationGrantType(SecurityConstants.MOBILE))) {
|
|
|
- throw new OAuth2AuthenticationException(OAuth2ErrorCodes.UNAUTHORIZED_CLIENT);
|
|
|
+ throw new OAuth2AuthenticationException(ErrorTypeEnum.UNAUTHORIZED_CLIENT.getDescription());
|
|
|
}
|
|
|
}
|
|
|
|