org.maxkey -> org.dromara.maxkey

This commit is contained in:
MaxKey
2023-08-15 09:59:22 +08:00
parent e246d50e86
commit 7ebf4a57f3
887 changed files with 3265 additions and 3210 deletions

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
/**
* Enumeration of possible methods for transmitting authentication credentials.

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.io.Serializable;
import java.util.Collections;
@@ -26,7 +26,7 @@ import java.util.Set;
import java.util.StringTokenizer;
import java.util.TreeSet;
import org.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.dromara.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
/**
* Basic access token for OAuth 2.

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.fasterxml.jackson.annotation.JsonValue;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.util.Date;

View File

@@ -10,14 +10,14 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.io.Serializable;
import java.util.Date;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.dromara.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
/**
* @author Dave Syer

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.io.IOException;
@@ -19,7 +19,7 @@ import java.util.LinkedHashMap;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import com.fasterxml.jackson.core.JsonParseException;
import com.fasterxml.jackson.core.JsonParser;
@@ -30,7 +30,7 @@ import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
/**
* <p>
* Provides the ability to deserialize JSON response into an {@link org.maxkey.authz.oauth2.common.OAuth2AccessToken} with jackson2 by implementing
* Provides the ability to deserialize JSON response into an {@link org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken} with jackson2 by implementing
* {@link com.fasterxml.jackson.databind.JsonDeserializer}.
* </p>
* <p>
@@ -40,7 +40,7 @@ import com.fasterxml.jackson.databind.deser.std.StdDeserializer;
*
* @author Rob Winch
* @author Brian Clozel
* @see org.maxkey.authz.oauth2.common.OAuth2AccessTokenJackson2Serializer
* @see org.dromara.maxkey.authz.oauth2.common.OAuth2AccessTokenJackson2Serializer
*/
@SuppressWarnings("serial")
public final class OAuth2AccessTokenJackson2Deserializer extends StdDeserializer<OAuth2AccessToken> {

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.io.IOException;
import java.util.Date;
@@ -25,12 +25,12 @@ import com.fasterxml.jackson.databind.SerializerProvider;
import com.fasterxml.jackson.databind.ser.std.StdSerializer;
/**
* Provides the ability to serialize an {@link org.maxkey.authz.oauth2.common.OAuth2AccessToken} with jackson2 by implementing {@link com.fasterxml.jackson.databind.JsonDeserializer}.
* Provides the ability to serialize an {@link org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken} with jackson2 by implementing {@link com.fasterxml.jackson.databind.JsonDeserializer}.
* Refer to {@link org.maxkey.authz.oauth2.common.OAuth2AccessTokenJackson1Deserializer} to learn more about the JSON format that is used.
*
* @author Rob Winch
* @author Brian Clozel
* @see org.maxkey.authz.oauth2.common.OAuth2AccessTokenJackson2Deserializer
* @see org.dromara.maxkey.authz.oauth2.common.OAuth2AccessTokenJackson2Deserializer
*/
public final class OAuth2AccessTokenJackson2Serializer extends StdSerializer<OAuth2AccessToken> {

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
public class OAuth2Constants {

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common;
package org.dromara.maxkey.authz.oauth2.common;
import java.io.Serializable;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* Exception thrown when a client was unable to authenticate.

View File

@@ -15,11 +15,11 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
/**
* Exception representing insufficient scope in a token when a request is handled by a Resource Server. It is akin to an

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* Exception thrown when a client was unable to authenticate.

View File

@@ -15,11 +15,11 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
/**
* Exception representing an invalid scope in a token or authorization request (i.e. from an Authorization Server). Note

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* @author Ryan Heaton

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.util.Map;
import java.util.Set;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.io.IOException;
import java.util.HashMap;
@@ -18,7 +18,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.io.IOException;
import java.util.Map.Entry;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import com.fasterxml.jackson.core.JsonParser;
import com.fasterxml.jackson.core.JsonProcessingException;
@@ -24,7 +24,7 @@ import java.util.List;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
/**
* @author Brian Clozel

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import java.io.IOException;
import java.util.Map.Entry;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* Thrown during a problem serialization/deserialization.

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
import org.springframework.security.authentication.InsufficientAuthenticationException;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* Exception thrown when a client was unable to authenticate.

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.exceptions;
package org.dromara.maxkey.authz.oauth2.common.exceptions;
/**
* Exception thrown when a user was unable to authenticate.

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.util.List;
import java.util.Map;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.util.Map;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.util.List;
import java.util.Map;

View File

@@ -27,7 +27,7 @@
* subcomponents is subject to the terms and conditions of the
* subcomponent's license, as noted in the LICENSE file.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.io.IOException;

View File

@@ -27,7 +27,7 @@
* subcomponents is subject to the terms and conditions of the
* subcomponent's license, as noted in the LICENSE file.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.io.IOException;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.util.Map;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import org.springframework.util.ClassUtils;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.util.Arrays;
import java.util.Collection;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.common.util;
package org.dromara.maxkey.authz.oauth2.common.util;
import java.security.SecureRandom;
import java.util.Random;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt;
package org.dromara.maxkey.authz.oauth2.jwt;
/**
* @author Luke Taylor

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt;
package org.dromara.maxkey.authz.oauth2.jwt;
/**
* @author Luke Taylor

View File

@@ -10,9 +10,9 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt;
package org.dromara.maxkey.authz.oauth2.jwt;
import org.maxkey.authz.oauth2.jwt.crypto.sign.SignatureVerifier;
import org.dromara.maxkey.authz.oauth2.jwt.crypto.sign.SignatureVerifier;
/**
* @author Luke Taylor

View File

@@ -10,12 +10,12 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt;
package org.dromara.maxkey.authz.oauth2.jwt;
import java.util.HashMap;
import java.util.Map;
import org.maxkey.authz.oauth2.jwt.crypto.cipher.CipherMetadata;
import org.dromara.maxkey.authz.oauth2.jwt.crypto.cipher.CipherMetadata;
/**
* @author Luke Taylor

View File

@@ -10,21 +10,21 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt;
package org.dromara.maxkey.authz.oauth2.jwt;
import static org.maxkey.authz.oauth2.jwt.JwtAlgorithms.sigAlg;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.b64UrlDecode;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.b64UrlEncode;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.concat;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Decode;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Encode;
import static org.dromara.maxkey.authz.oauth2.jwt.JwtAlgorithms.sigAlg;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.b64UrlDecode;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.b64UrlEncode;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.concat;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Decode;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Encode;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.nio.CharBuffer;
import org.maxkey.authz.oauth2.jwt.crypto.sign.SignatureVerifier;
import org.maxkey.authz.oauth2.jwt.crypto.sign.Signer;
import org.dromara.maxkey.authz.oauth2.jwt.crypto.sign.SignatureVerifier;
import org.dromara.maxkey.authz.oauth2.jwt.crypto.sign.Signer;
import com.fasterxml.jackson.core.JsonFactory;
import com.fasterxml.jackson.core.JsonGenerator;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.jwt.codec;
package org.dromara.maxkey.authz.oauth2.jwt.codec;
/**
* Base64 encoder which is a reduced version of Robert Harder's public domain implementation (version 2.3.7).

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.codec;
package org.dromara.maxkey.authz.oauth2.jwt.codec;
import java.nio.ByteBuffer;
import java.nio.CharBuffer;

View File

@@ -10,9 +10,9 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.cipher;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.cipher;
import org.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
import org.dromara.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
/**
* @author Luke Taylor

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
/**
* @author Luke Taylor

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import java.security.GeneralSecurityException;
import javax.crypto.Mac;

View File

@@ -10,10 +10,10 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.b64Decode;
import static org.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Encode;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.b64Decode;
import static org.dromara.maxkey.authz.oauth2.jwt.codec.Codecs.utf8Encode;
import java.io.ByteArrayInputStream;
import java.io.IOException;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import java.math.BigInteger;
import java.security.*;

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import java.math.BigInteger;
import java.security.*;

View File

@@ -10,9 +10,9 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import org.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
import org.dromara.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
/**
* @author Luke Taylor

View File

@@ -10,9 +10,9 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
import org.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
import org.dromara.maxkey.authz.oauth2.jwt.AlgorithmMetadata;
/**
* @author Luke Taylor

View File

@@ -10,7 +10,7 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.jwt.crypto.sign;
package org.dromara.maxkey.authz.oauth2.jwt.crypto.sign;
/**
* @author Luke Taylor

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.io.Serializable;
import java.util.Collection;
@@ -25,8 +25,8 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.security.core.GrantedAuthority;
import org.springframework.web.bind.annotation.SessionAttributes;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.io.Serializable;
import java.util.Collection;
@@ -25,7 +25,7 @@ import java.util.LinkedHashSet;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
/**
*

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
/**
* Exception indicating that a client registration already exists (e.g. if someone tries to create a duplicate).

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
/**
* A service that provides the details about an OAuth2 client.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
/**
* @author Dave Syer

View File

@@ -13,11 +13,11 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.List;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
/**
* Interface for client registration, handling add, update and remove of {@link ClientDetails} from an Authorization

View File

@@ -14,12 +14,12 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.ArrayList;
import java.util.List;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
/**
* @author Dave Syer

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.Collections;
import java.util.HashSet;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
/**
* @author Dave Syer

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import org.springframework.security.authentication.AbstractAuthenticationToken;
import org.springframework.security.core.Authentication;

View File

@@ -15,7 +15,7 @@
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.io.Serializable;
import java.util.Collection;
@@ -24,7 +24,7 @@ import java.util.HashSet;
import java.util.Map;
import java.util.Set;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.springframework.security.core.GrantedAuthority;
/**

View File

@@ -11,11 +11,11 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.Map;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
/**
* Strategy for managing OAuth2 requests: {@link AuthorizationRequest}, {@link TokenRequest}, {@link OAuth2Request}.

View File

@@ -15,11 +15,11 @@
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import org.maxkey.authz.oauth2.common.exceptions.InvalidScopeException;
import org.maxkey.authz.oauth2.provider.endpoint.TokenEndpoint;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidScopeException;
import org.dromara.maxkey.authz.oauth2.provider.endpoint.TokenEndpoint;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
/**
* Validation interface for OAuth2 requests to the {@link AuthorizationEndpoint} and {@link TokenEndpoint}.

View File

@@ -10,16 +10,16 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.ArrayList;
import org.maxkey.authn.SignPrincipal;
import org.maxkey.authn.provider.AbstractAuthenticationProvider;
import org.maxkey.authn.session.Session;
import org.maxkey.entity.UserInfo;
import org.maxkey.persistence.repository.LoginRepository;
import org.maxkey.web.WebConstants;
import org.dromara.maxkey.authn.SignPrincipal;
import org.dromara.maxkey.authn.provider.AbstractAuthenticationProvider;
import org.dromara.maxkey.authn.session.Session;
import org.dromara.maxkey.entity.UserInfo;
import org.dromara.maxkey.persistence.repository.LoginRepository;
import org.dromara.maxkey.web.WebConstants;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.security.core.GrantedAuthority;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.Set;

View File

@@ -14,9 +14,9 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
/**
* Interface for granters of access tokens. Various grant types are defined in the specification, and each of those has

View File

@@ -15,16 +15,16 @@
*/
package org.maxkey.authz.oauth2.provider;
package org.dromara.maxkey.authz.oauth2.provider;
import java.util.Collection;
import java.util.HashMap;
import java.util.Map;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.maxkey.authz.oauth2.provider.endpoint.AuthorizationEndpoint;
import org.maxkey.authz.oauth2.provider.endpoint.TokenEndpoint;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.provider.endpoint.AuthorizationEndpoint;
import org.dromara.maxkey.authz.oauth2.provider.endpoint.TokenEndpoint;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
/**
* Represents an OAuth2 token request, made at the {@link TokenEndpoint}. The requestParameters map should contain the

View File

@@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Calendar;
import java.util.Date;
import org.maxkey.authz.oauth2.common.util.JsonDateDeserializer;
import org.maxkey.authz.oauth2.common.util.JsonDateSerializer;
import org.dromara.maxkey.authz.oauth2.common.util.JsonDateDeserializer;
import org.dromara.maxkey.authz.oauth2.common.util.JsonDateSerializer;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Collection;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Calendar;
import java.util.Collection;
@@ -27,14 +27,14 @@ import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.core.Authentication;
import org.springframework.util.Assert;

View File

@@ -14,13 +14,13 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.HashMap;
import java.util.Map;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.springframework.security.core.Authentication;
/**

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Collection;
import java.util.Collections;

View File

@@ -13,9 +13,9 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import static org.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus.APPROVED;
import static org.dromara.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus.APPROVED;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
@@ -29,7 +29,7 @@ import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.dromara.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.springframework.dao.DataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.PreparedStatementSetter;

View File

@@ -14,17 +14,17 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Collection;
import java.util.Date;
import java.util.HashSet;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.maxkey.authz.oauth2.provider.token.TokenStore;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.dromara.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.dromara.maxkey.authz.oauth2.provider.token.TokenStore;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
@@ -55,7 +55,7 @@ public class TokenApprovalStore implements ApprovalStore {
* This implementation is a no-op. We assume that the {@link TokenStore} is populated elsewhere, by (for example) a
* token services instance that knows more about granted tokens than we could possibly infer from the approvals.
*
* @see org.maxkey.authz.oauth2.provider.approval.ApprovalStore#addApprovals(java.util.Collection)
* @see org.dromara.maxkey.authz.oauth2.provider.approval.ApprovalStore#addApprovals(java.util.Collection)
*/
@Override
public boolean addApprovals(Collection<Approval> approvals) {
@@ -66,7 +66,7 @@ public class TokenApprovalStore implements ApprovalStore {
/**
* Revoke all tokens that match the client and user in the approvals supplied.
*
* @see org.maxkey.authz.oauth2.provider.approval.ApprovalStore#revokeApprovals(java.util.Collection)
* @see org.dromara.maxkey.authz.oauth2.provider.approval.ApprovalStore#revokeApprovals(java.util.Collection)
*/
@Override
public boolean revokeApprovals(Collection<Approval> approvals) {
@@ -88,7 +88,7 @@ public class TokenApprovalStore implements ApprovalStore {
/**
* Extract the implied approvals from any tokens associated with the user and client id supplied.
*
* @see org.maxkey.authz.oauth2.provider.approval.ApprovalStore#getApprovals(java.lang.String,
* @see org.dromara.maxkey.authz.oauth2.provider.approval.ApprovalStore#getApprovals(java.lang.String,
* java.lang.String)
*/
@Override

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.HashMap;
import java.util.Map;
@@ -22,16 +22,16 @@ import java.util.Set;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.authz.oauth2.provider.OAuth2Request;
import org.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.token.TokenStore;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Request;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.token.TokenStore;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.security.core.Authentication;
import org.springframework.util.Assert;

View File

@@ -15,11 +15,11 @@
*/
package org.maxkey.authz.oauth2.provider.approval;
package org.dromara.maxkey.authz.oauth2.provider.approval;
import java.util.Map;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.springframework.security.core.Authentication;
/**

View File

@@ -15,30 +15,30 @@
*/
package org.maxkey.authz.oauth2.provider.approval.endpoint;
package org.dromara.maxkey.authz.oauth2.provider.approval.endpoint;
import java.util.HashMap;
import java.util.LinkedHashMap;
import java.util.Map;
import org.maxkey.authn.annotation.CurrentUser;
import org.maxkey.authn.jwt.AuthTokenService;
import org.maxkey.authn.web.AuthorizationUtils;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.approval.Approval;
import org.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.maxkey.configuration.ApplicationConfig;
import org.maxkey.entity.Message;
import org.maxkey.entity.UserInfo;
import org.maxkey.entity.apps.Apps;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.maxkey.authz.oauth2.provider.approval.ApprovalStore;
import org.maxkey.persistence.cache.MomentaryService;
import org.maxkey.persistence.service.AppsService;
import org.maxkey.util.StringUtils;
import org.maxkey.web.WebContext;
import org.dromara.maxkey.authn.annotation.CurrentUser;
import org.dromara.maxkey.authn.jwt.AuthTokenService;
import org.dromara.maxkey.authn.web.AuthorizationUtils;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.approval.Approval;
import org.dromara.maxkey.authz.oauth2.provider.approval.ApprovalStore;
import org.dromara.maxkey.authz.oauth2.provider.approval.Approval.ApprovalStatus;
import org.dromara.maxkey.configuration.ApplicationConfig;
import org.dromara.maxkey.entity.Message;
import org.dromara.maxkey.entity.UserInfo;
import org.dromara.maxkey.entity.apps.Apps;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.persistence.cache.MomentaryService;
import org.dromara.maxkey.persistence.service.AppsService;
import org.dromara.maxkey.util.StringUtils;
import org.dromara.maxkey.web.WebContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;

View File

@@ -14,15 +14,15 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.approval.endpoint;
package org.dromara.maxkey.authz.oauth2.provider.approval.endpoint;
import java.util.Collection;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.maxkey.authz.oauth2.provider.approval.ApprovalStoreUserApprovalHandler;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.ClientRegistrationException;
import org.dromara.maxkey.authz.oauth2.provider.approval.ApprovalStoreUserApprovalHandler;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.security.core.Authentication;
/**

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.authentication;
package org.dromara.maxkey.authz.oauth2.provider.authentication;
import java.util.Enumeration;
@@ -19,7 +19,7 @@ import javax.servlet.http.HttpServletRequest;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.springframework.security.core.Authentication;
import org.springframework.security.web.authentication.preauth.PreAuthenticatedAuthenticationToken;

View File

@@ -12,7 +12,7 @@
*/
package org.maxkey.authz.oauth2.provider.authentication;
package org.dromara.maxkey.authz.oauth2.provider.authentication;
import javax.servlet.http.HttpServletRequest;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.authentication;
package org.dromara.maxkey.authz.oauth2.provider.authentication;
import javax.servlet.http.HttpServletRequest;

View File

@@ -14,15 +14,15 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.client;
package org.dromara.maxkey.authz.oauth2.provider.client;
import org.maxkey.authz.oauth2.common.DefaultOAuth2AccessToken;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.TokenRequest;
import org.maxkey.authz.oauth2.provider.token.AbstractTokenGranter;
import org.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.dromara.maxkey.authz.oauth2.common.DefaultOAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.TokenRequest;
import org.dromara.maxkey.authz.oauth2.provider.token.AbstractTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
/**
* @author Dave Syer

View File

@@ -10,12 +10,12 @@
* an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.client;
package org.dromara.maxkey.authz.oauth2.provider.client;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.NoSuchClientException;
import org.maxkey.crypto.password.PasswordReciprocal;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.NoSuchClientException;
import org.dromara.maxkey.crypto.password.PasswordReciprocal;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.security.core.userdetails.User;
import org.springframework.security.core.userdetails.UserDetails;
import org.springframework.security.core.userdetails.UserDetailsService;

View File

@@ -14,7 +14,7 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.client;
package org.dromara.maxkey.authz.oauth2.provider.client;
import java.sql.ResultSet;
import java.sql.SQLException;
@@ -29,15 +29,15 @@ import javax.sql.DataSource;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.common.util.DefaultJdbcListFactory;
import org.maxkey.authz.oauth2.common.util.JdbcListFactory;
import org.maxkey.authz.oauth2.provider.ClientAlreadyExistsException;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.ClientRegistrationService;
import org.maxkey.authz.oauth2.provider.NoSuchClientException;
import org.maxkey.crypto.password.NoOpPasswordEncoder;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.maxkey.entity.apps.oauth2.provider.client.BaseClientDetails;
import org.dromara.maxkey.authz.oauth2.common.util.DefaultJdbcListFactory;
import org.dromara.maxkey.authz.oauth2.common.util.JdbcListFactory;
import org.dromara.maxkey.authz.oauth2.provider.ClientAlreadyExistsException;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.ClientRegistrationService;
import org.dromara.maxkey.authz.oauth2.provider.NoSuchClientException;
import org.dromara.maxkey.crypto.password.NoOpPasswordEncoder;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.entity.apps.oauth2.provider.client.BaseClientDetails;
import org.springframework.dao.DuplicateKeyException;
import org.springframework.dao.EmptyResultDataAccessException;
import org.springframework.jdbc.core.JdbcTemplate;

View File

@@ -15,10 +15,10 @@
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import org.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
/**
* Services for issuing and storing authorization codes.

View File

@@ -15,10 +15,10 @@
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import org.maxkey.constants.ConstsPersistence;
import org.maxkey.persistence.redis.RedisConnectionFactory;
import org.dromara.maxkey.constants.ConstsPersistence;
import org.dromara.maxkey.persistence.redis.RedisConnectionFactory;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.jdbc.core.JdbcTemplate;

View File

@@ -14,30 +14,30 @@
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import java.util.HashMap;
import java.util.Map;
import java.util.Set;
import org.apache.commons.lang3.StringUtils;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.common.OAuth2Constants.CODE_CHALLENGE_METHOD_TYPE;
import org.maxkey.authz.oauth2.common.exceptions.InvalidClientException;
import org.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.maxkey.authz.oauth2.common.exceptions.InvalidRequestException;
import org.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.maxkey.authz.oauth2.common.exceptions.RedirectMismatchException;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.authz.oauth2.provider.OAuth2Request;
import org.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.TokenRequest;
import org.maxkey.authz.oauth2.provider.token.AbstractTokenGranter;
import org.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.maxkey.constants.ConstsProtocols;
import org.maxkey.crypto.DigestUtils;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants.CODE_CHALLENGE_METHOD_TYPE;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidClientException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidRequestException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.dromara.maxkey.authz.oauth2.common.exceptions.RedirectMismatchException;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Request;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.TokenRequest;
import org.dromara.maxkey.authz.oauth2.provider.token.AbstractTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.dromara.maxkey.constants.ConstsProtocols;
import org.dromara.maxkey.crypto.DigestUtils;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.springframework.security.core.Authentication;
/**

View File

@@ -15,11 +15,12 @@
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import java.util.concurrent.TimeUnit;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import com.github.benmanes.caffeine.cache.Cache;
import com.github.benmanes.caffeine.cache.Caffeine;

View File

@@ -15,12 +15,12 @@
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import java.util.UUID;
import org.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidGrantException;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
/**
* Base implementation for authorization code services that generates a random-value authorization code.

View File

@@ -15,11 +15,11 @@
*/
package org.maxkey.authz.oauth2.provider.code;
package org.dromara.maxkey.authz.oauth2.provider.code;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.persistence.redis.RedisConnection;
import org.maxkey.persistence.redis.RedisConnectionFactory;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.persistence.redis.RedisConnection;
import org.dromara.maxkey.persistence.redis.RedisConnectionFactory;
/**
* Implementation of authorization code services that stores the codes and authentication in Redis.

View File

@@ -13,7 +13,7 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.endpoint;
package org.dromara.maxkey.authz.oauth2.provider.endpoint;
import java.util.ArrayList;
@@ -21,22 +21,22 @@ import java.util.List;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.maxkey.authz.oauth2.provider.CompositeTokenGranter;
import org.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.TokenGranter;
import org.maxkey.authz.oauth2.provider.client.ClientCredentialsTokenGranter;
import org.maxkey.authz.oauth2.provider.code.AuthorizationCodeServices;
import org.maxkey.authz.oauth2.provider.code.AuthorizationCodeTokenGranter;
import org.maxkey.authz.oauth2.provider.code.InMemoryAuthorizationCodeServices;
import org.maxkey.authz.oauth2.provider.implicit.ImplicitTokenGranter;
import org.maxkey.authz.oauth2.provider.password.ResourceOwnerPasswordTokenGranter;
import org.maxkey.authz.oauth2.provider.refresh.RefreshTokenGranter;
import org.maxkey.authz.oauth2.provider.request.DefaultOAuth2RequestFactory;
import org.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.maxkey.configuration.ApplicationConfig;
import org.maxkey.persistence.cache.MomentaryService;
import org.maxkey.persistence.service.AppsService;
import org.dromara.maxkey.authz.oauth2.provider.ClientDetailsService;
import org.dromara.maxkey.authz.oauth2.provider.CompositeTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.TokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.client.ClientCredentialsTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.code.AuthorizationCodeServices;
import org.dromara.maxkey.authz.oauth2.provider.code.AuthorizationCodeTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.code.InMemoryAuthorizationCodeServices;
import org.dromara.maxkey.authz.oauth2.provider.implicit.ImplicitTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.password.ResourceOwnerPasswordTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.refresh.RefreshTokenGranter;
import org.dromara.maxkey.authz.oauth2.provider.request.DefaultOAuth2RequestFactory;
import org.dromara.maxkey.authz.oauth2.provider.token.AuthorizationServerTokenServices;
import org.dromara.maxkey.configuration.ApplicationConfig;
import org.dromara.maxkey.persistence.cache.MomentaryService;
import org.dromara.maxkey.persistence.service.AppsService;
import org.springframework.beans.factory.InitializingBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;

View File

@@ -11,7 +11,7 @@
* specific language governing permissions and limitations under the License.
*/
package org.maxkey.authz.oauth2.provider.endpoint;
package org.dromara.maxkey.authz.oauth2.provider.endpoint;
import java.net.URI;
import java.security.Principal;
@@ -23,35 +23,35 @@ import java.util.Set;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import org.maxkey.authn.annotation.CurrentUser;
import org.maxkey.authn.web.AuthorizationUtils;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.common.exceptions.InvalidClientException;
import org.maxkey.authz.oauth2.common.exceptions.InvalidRequestException;
import org.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.maxkey.authz.oauth2.common.exceptions.RedirectMismatchException;
import org.maxkey.authz.oauth2.common.exceptions.UnapprovedClientAuthenticationException;
import org.maxkey.authz.oauth2.common.exceptions.UnsupportedResponseTypeException;
import org.maxkey.authz.oauth2.common.exceptions.UserDeniedAuthorizationException;
import org.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.authz.oauth2.provider.OAuth2Request;
import org.maxkey.authz.oauth2.provider.OAuth2RequestValidator;
import org.maxkey.authz.oauth2.provider.TokenRequest;
import org.maxkey.authz.oauth2.provider.approval.DefaultUserApprovalHandler;
import org.maxkey.authz.oauth2.provider.approval.UserApprovalHandler;
import org.maxkey.authz.oauth2.provider.code.AuthorizationCodeServices;
import org.maxkey.authz.oauth2.provider.implicit.ImplicitTokenRequest;
import org.maxkey.authz.oauth2.provider.request.DefaultOAuth2RequestValidator;
import org.maxkey.util.HttpEncoder;
import org.maxkey.entity.Message;
import org.maxkey.entity.UserInfo;
import org.maxkey.entity.apps.Apps;
import org.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.maxkey.web.WebConstants;
import org.maxkey.web.WebContext;
import org.dromara.maxkey.authn.annotation.CurrentUser;
import org.dromara.maxkey.authn.web.AuthorizationUtils;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidClientException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidRequestException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.OAuth2Exception;
import org.dromara.maxkey.authz.oauth2.common.exceptions.RedirectMismatchException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.UnapprovedClientAuthenticationException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.UnsupportedResponseTypeException;
import org.dromara.maxkey.authz.oauth2.common.exceptions.UserDeniedAuthorizationException;
import org.dromara.maxkey.authz.oauth2.common.util.OAuth2Utils;
import org.dromara.maxkey.authz.oauth2.provider.AuthorizationRequest;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Request;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2RequestValidator;
import org.dromara.maxkey.authz.oauth2.provider.TokenRequest;
import org.dromara.maxkey.authz.oauth2.provider.approval.DefaultUserApprovalHandler;
import org.dromara.maxkey.authz.oauth2.provider.approval.UserApprovalHandler;
import org.dromara.maxkey.authz.oauth2.provider.code.AuthorizationCodeServices;
import org.dromara.maxkey.authz.oauth2.provider.implicit.ImplicitTokenRequest;
import org.dromara.maxkey.authz.oauth2.provider.request.DefaultOAuth2RequestValidator;
import org.dromara.maxkey.entity.Message;
import org.dromara.maxkey.entity.UserInfo;
import org.dromara.maxkey.entity.apps.Apps;
import org.dromara.maxkey.entity.apps.oauth2.provider.ClientDetails;
import org.dromara.maxkey.util.HttpEncoder;
import org.dromara.maxkey.web.WebConstants;
import org.dromara.maxkey.web.WebContext;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.http.ResponseEntity;

View File

@@ -27,19 +27,19 @@
* subcomponents is subject to the terms and conditions of the
* subcomponent's license, as noted in the LICENSE file.
*******************************************************************************/
package org.maxkey.authz.oauth2.provider.endpoint;
package org.dromara.maxkey.authz.oauth2.provider.endpoint;
import java.util.Map;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.maxkey.authz.oauth2.common.OAuth2Constants;
import org.maxkey.authz.oauth2.common.exceptions.InvalidTokenException;
import org.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.maxkey.authz.oauth2.provider.token.AccessTokenConverter;
import org.maxkey.authz.oauth2.provider.token.DefaultAccessTokenConverter;
import org.maxkey.authz.oauth2.provider.token.ResourceServerTokenServices;
import org.dromara.maxkey.authz.oauth2.common.OAuth2AccessToken;
import org.dromara.maxkey.authz.oauth2.common.OAuth2Constants;
import org.dromara.maxkey.authz.oauth2.common.exceptions.InvalidTokenException;
import org.dromara.maxkey.authz.oauth2.provider.OAuth2Authentication;
import org.dromara.maxkey.authz.oauth2.provider.token.AccessTokenConverter;
import org.dromara.maxkey.authz.oauth2.provider.token.DefaultAccessTokenConverter;
import org.dromara.maxkey.authz.oauth2.provider.token.ResourceServerTokenServices;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

Some files were not shown because too many files have changed in this diff Show More