扩展包名分类

This commit is contained in:
jumuning 2022-06-01 13:40:06 +08:00
parent 7e4efca9d2
commit 2ffe3864d9
7 changed files with 13 additions and 7 deletions

View File

@ -17,6 +17,10 @@
package com.pig4cloud.pig.auth.config;
import com.pig4cloud.pig.auth.support.*;
import com.pig4cloud.pig.auth.support.password.OAuth2ResourceOwnerPasswordAuthenticationConverter;
import com.pig4cloud.pig.auth.support.password.OAuth2ResourceOwnerPasswordAuthenticationProvider;
import com.pig4cloud.pig.auth.support.sms.OAuth2ResourceOwnerSmsAuthenticationConverter;
import com.pig4cloud.pig.auth.support.sms.OAuth2ResourceOwnerSmsAuthenticationProvider;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.security.component.PigDaoAuthenticationProvider;
import com.pig4cloud.pig.common.security.service.PigUser;
@ -127,7 +131,7 @@ public class AuthorizationServerConfiguration {
/**
* 扩展密码模式
*/
@SuppressWarnings("all")
@SuppressWarnings("unchecked")
private void addCustomOAuth2PasswordAuthenticationProvider(HttpSecurity http) {
AuthenticationManager authenticationManager = http.getSharedObject(AuthenticationManager.class);

View File

@ -1,4 +1,4 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.password;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.security.util.OAuth2EndpointUtils;

View File

@ -1,5 +1,6 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.password;
import com.pig4cloud.pig.auth.support.ScopeException;
import com.pig4cloud.pig.common.security.util.OAuth2ErrorCodesExpand;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

View File

@ -1,4 +1,4 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.password;
import org.springframework.lang.Nullable;
import org.springframework.security.authentication.AbstractAuthenticationToken;

View File

@ -1,4 +1,4 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.sms;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.security.util.OAuth2EndpointUtils;

View File

@ -1,5 +1,6 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.sms;
import com.pig4cloud.pig.auth.support.ScopeException;
import com.pig4cloud.pig.common.core.constant.SecurityConstants;
import com.pig4cloud.pig.common.security.util.OAuth2ErrorCodesExpand;
import org.apache.logging.log4j.LogManager;

View File

@ -1,4 +1,4 @@
package com.pig4cloud.pig.auth.support;
package com.pig4cloud.pig.auth.support.sms;
import org.springframework.lang.Nullable;
import org.springframework.security.authentication.AbstractAuthenticationToken;