Skip to content

Commit

Permalink
🚚 调整下 security 的包名
Browse files Browse the repository at this point in the history
link gh-172
  • Loading branch information
Hccake committed Jun 7, 2023
1 parent 9b6d4c3 commit 9549581
Show file tree
Hide file tree
Showing 27 changed files with 48 additions and 48 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@

import com.fasterxml.jackson.databind.Module;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.ballcat.security.oauth2.authentication.OAuth2UserAuthenticationToken;
import org.ballcat.security.oauth2.jackson2.LongMixin;
import org.ballcat.security.oauth2.jackson2.OAuth2UserAuthenticationTokenMixin;
import org.ballcat.security.oauth2.jackson2.UserMixin;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.security.oauth2.util.PasswordUtils;
import org.ballcat.springsecurity.oauth2.authentication.OAuth2UserAuthenticationToken;
import org.ballcat.springsecurity.oauth2.jackson2.LongMixin;
import org.ballcat.springsecurity.oauth2.jackson2.OAuth2UserAuthenticationTokenMixin;
import org.ballcat.springsecurity.oauth2.jackson2.UserMixin;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.ballcat.springsecurity.util.PasswordUtils;
import lombok.RequiredArgsConstructor;
import org.ballcat.springsecurity.oauth2.server.authorization.OAuth2AuthorizationObjectMapperCustomizer;
import org.ballcat.springsecurity.oauth2.server.authorization.config.BallcatOAuth2AuthorizationServerSecurityFilterChainBuilder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package org.ballcat.springsecurity.oauth2.server.authorization.token;

import org.ballcat.security.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.security.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.springsecurity.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.springframework.security.core.Authentication;
import org.springframework.security.oauth2.server.authorization.authentication.OAuth2ClientAuthenticationToken;
import org.springframework.security.oauth2.server.authorization.token.OAuth2TokenClaimsContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
import cn.hutool.core.text.CharSequenceUtil;
import org.ballcat.common.model.result.R;
import org.ballcat.common.model.result.SystemResultCode;
import org.ballcat.security.oauth2.ScopeNames;
import org.ballcat.springsecurity.oauth2.ScopeNames;
import org.ballcat.common.util.JsonUtils;
import lombok.RequiredArgsConstructor;
import org.ballcat.security.captcha.CaptchaValidateResult;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
import org.ballcat.common.core.request.wrapper.ModifyParamMapRequestWrapper;
import org.ballcat.common.model.result.R;
import org.ballcat.common.model.result.SystemResultCode;
import org.ballcat.security.oauth2.ScopeNames;
import org.ballcat.security.oauth2.util.PasswordUtils;
import org.ballcat.springsecurity.oauth2.ScopeNames;
import org.ballcat.springsecurity.util.PasswordUtils;
import org.ballcat.common.util.JsonUtils;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.ballcat.springsecurity.oauth2.server.authorization;

import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.server.authorization.client.TestRegisteredClients;
import org.ballcat.springsecurity.oauth2.server.authorization.user.TestUsers;
import org.springframework.security.authentication.TestingAuthenticationToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.ballcat.springsecurity.oauth2.server.authorization.authentication;

import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.server.authorization.client.TestRegisteredClients;
import org.ballcat.springsecurity.oauth2.server.authorization.context.TestAuthorizationServerContext;
import org.ballcat.springsecurity.oauth2.server.authorization.user.TestUsers;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@
*/
package org.ballcat.springsecurity.oauth2.server.authorization.token;

import org.ballcat.security.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.security.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.springsecurity.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.server.authorization.authentication.OAuth2ResourceOwnerPasswordAuthenticationToken;
import org.ballcat.springsecurity.oauth2.server.authorization.client.TestRegisteredClients;
import org.ballcat.springsecurity.oauth2.server.authorization.context.TestAuthorizationServerContext;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*/
package org.ballcat.springsecurity.oauth2.server.authorization.user;

import org.ballcat.security.oauth2.constant.UserAttributeNameConstants;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.constant.UserAttributeNameConstants;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.component;
package org.ballcat.springsecurity.component;

import cn.hutool.core.text.CharSequenceUtil;
import lombok.extern.slf4j.Slf4j;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2;
package org.ballcat.springsecurity.oauth2;

/**
* @author hccake
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.authentication;
package org.ballcat.springsecurity.oauth2.authentication;

import lombok.EqualsAndHashCode;
import org.springframework.security.authentication.AbstractAuthenticationToken;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.constant;
package org.ballcat.springsecurity.oauth2.constant;

/**
* @author hccake
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.constant;
package org.ballcat.springsecurity.oauth2.constant;

/**
* @author hccake
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.constant;
package org.ballcat.springsecurity.oauth2.constant;

/**
* @author hccake
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.jackson2;
package org.ballcat.springsecurity.oauth2.jackson2;

import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonTypeInfo;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.jackson2;
package org.ballcat.springsecurity.oauth2.jackson2;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand All @@ -22,8 +22,8 @@
import com.fasterxml.jackson.databind.JsonDeserializer;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.ballcat.security.oauth2.authentication.OAuth2UserAuthenticationToken;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.authentication.OAuth2UserAuthenticationToken;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.jackson2;
package org.ballcat.springsecurity.oauth2.jackson2;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.jackson2;
package org.ballcat.springsecurity.oauth2.jackson2;

import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
Expand All @@ -23,7 +23,7 @@
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.node.MissingNode;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.authority.SimpleGrantedAuthority;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.jackson2;
package org.ballcat.springsecurity.oauth2.jackson2;

import com.fasterxml.jackson.annotation.JsonAutoDetect;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.userdetails;
package org.ballcat.springsecurity.oauth2.userdetails;

import org.springframework.lang.NonNull;
import org.springframework.security.core.GrantedAuthority;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.userdetails;
package org.ballcat.springsecurity.oauth2.userdetails;

import lombok.Builder;
import lombok.Getter;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.util;
package org.ballcat.springsecurity.util;

import cn.hutool.core.codec.Base64;
import cn.hutool.crypto.Mode;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.util;
package org.ballcat.springsecurity.util;

import org.ballcat.security.oauth2.userdetails.ClientPrincipal;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.userdetails.ClientPrincipal;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import lombok.experimental.UtilityClass;
import org.springframework.security.core.Authentication;
import org.springframework.security.core.context.SecurityContextHolder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.ballcat.security.oauth2.test;
package org.ballcat.springsecurity.oauth2.test;

import org.ballcat.security.oauth2.util.PasswordUtils;
import org.ballcat.springsecurity.util.PasswordUtils;
import org.junit.jupiter.api.Assertions;
import org.junit.jupiter.api.Test;
import org.springframework.security.crypto.password.PasswordEncoder;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*/
package org.ballcat.springsecurity.oauth2.server.resource;

import org.ballcat.security.oauth2.component.CustomPermissionEvaluator;
import org.ballcat.springsecurity.component.CustomPermissionEvaluator;
import org.ballcat.springsecurity.oauth2.server.resource.configurer.BallcatOauth2ResourceServerSecurityFilterChainBuilder;
import org.ballcat.springsecurity.oauth2.server.resource.configurer.OAuth2ResourceServerConfigurerCustomizer;
import org.ballcat.springsecurity.oauth2.server.resource.configurer.OAuth2ResourceServerExtensionConfigurer;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@
package org.ballcat.springsecurity.oauth2.server.resource.introspection;

import cn.hutool.core.collection.CollUtil;
import org.ballcat.security.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.security.oauth2.constant.UserAttributeNameConstants;
import org.ballcat.security.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.security.oauth2.userdetails.ClientPrincipal;
import org.ballcat.security.oauth2.userdetails.User;
import org.ballcat.springsecurity.oauth2.constant.TokenAttributeNameConstants;
import org.ballcat.springsecurity.oauth2.constant.UserAttributeNameConstants;
import org.ballcat.springsecurity.oauth2.constant.UserInfoFiledNameConstants;
import org.ballcat.springsecurity.oauth2.userdetails.ClientPrincipal;
import org.ballcat.springsecurity.oauth2.userdetails.User;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.core.ParameterizedTypeReference;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
package org.ballcat.springsecurity.oauth2.server.resource.introspection;

import cn.hutool.core.collection.CollUtil;
import org.ballcat.security.oauth2.userdetails.ClientPrincipal;
import org.ballcat.springsecurity.oauth2.userdetails.ClientPrincipal;
import lombok.extern.slf4j.Slf4j;
import org.springframework.security.authentication.UsernamePasswordAuthenticationToken;
import org.springframework.security.core.GrantedAuthority;
Expand Down

0 comments on commit 9549581

Please sign in to comment.