mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-22 12:48:58 +08:00
扩展包名分类
This commit is contained in:
parent
7e4efca9d2
commit
2ffe3864d9
@ -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);
|
||||
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
@ -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;
|
Loading…
Reference in New Issue
Block a user