mybatis-jpa-extra
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
|
||||
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -27,6 +27,7 @@ import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.beanutils.BeanUtils;
|
||||
import org.apache.commons.lang3.StringUtils;
|
||||
import org.apache.mybatis.jpa.util.JpaWebContext;
|
||||
import org.maxkey.authn.annotation.CurrentUser;
|
||||
import org.maxkey.authn.web.AuthorizationUtils;
|
||||
import org.maxkey.authz.endpoint.AuthorizeBaseEndpoint;
|
||||
@@ -172,6 +173,6 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
|
||||
return jwkSetKeyStore.toString(mediaType);
|
||||
|
||||
}
|
||||
return appId + " not exist.";
|
||||
return appId + " not exist. \n" + JpaWebContext.version();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,6 +23,7 @@ import java.util.Set;
|
||||
import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.mybatis.jpa.util.JpaWebContext;
|
||||
import org.maxkey.authn.web.AuthorizationUtils;
|
||||
import org.maxkey.authz.oauth2.common.OAuth2AccessToken;
|
||||
import org.maxkey.authz.oauth2.common.OAuth2Constants;
|
||||
@@ -90,6 +91,7 @@ import io.swagger.v3.oas.annotations.tags.Tag;
|
||||
*
|
||||
* @author Dave Syer
|
||||
* @author Vladimir Kryachko
|
||||
* @author Crystal.sea 2022-04-14
|
||||
*
|
||||
*/
|
||||
@Tag(name = "2-1-OAuth v2.0 API文档模块")
|
||||
@@ -326,7 +328,7 @@ public class AuthorizationEndpoint extends AbstractEndpoint {
|
||||
return jwkSetKeyStore.toString(mediaType);
|
||||
}
|
||||
|
||||
return appId + " not exist.";
|
||||
return appId + " not exist . \n" + JpaWebContext.version();
|
||||
}
|
||||
|
||||
// We need explicit approval from the user.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright [2020] [MaxKey of copyright http://www.maxkey.top]
|
||||
* Copyright [2022] [MaxKey of copyright http://www.maxkey.top]
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,6 +21,7 @@ import javax.servlet.http.HttpServletRequest;
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
|
||||
import org.apache.commons.lang.Validate;
|
||||
import org.apache.mybatis.jpa.util.JpaWebContext;
|
||||
import org.maxkey.authz.saml.common.TrustResolver;
|
||||
import org.maxkey.authz.saml20.metadata.MetadataGenerator;
|
||||
import org.maxkey.constants.ContentType;
|
||||
@@ -167,7 +168,8 @@ public class SamlMetadataEndpoint {
|
||||
}
|
||||
|
||||
|
||||
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";
|
||||
return "<?xml version=\"1.0\" encoding=\"UTF-8\"?>"
|
||||
+ "<root>" + JpaWebContext.version() + "</root>";
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user