|
@@ -44,9 +44,8 @@ import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Controller;
|
|
|
+import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PathVariable;
|
|
|
-import org.springframework.web.bind.annotation.RequestMapping;
|
|
|
-import org.springframework.web.bind.annotation.RequestMethod;
|
|
|
import org.springframework.web.bind.annotation.ResponseBody;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
|
|
|
@@ -71,8 +70,8 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
|
|
|
@Autowired
|
|
|
ApplicationConfig applicationConfig;
|
|
|
|
|
|
- @Operation(summary = "JWT应用ID认证接口", description = "应用ID",method="GET")
|
|
|
- @RequestMapping("/authz/jwt/{id}")
|
|
|
+ @Operation(summary = "JWT应用ID认证接口", description = "应用ID")
|
|
|
+ @GetMapping("/authz/jwt/{id}")
|
|
|
public ModelAndView authorize(
|
|
|
HttpServletRequest request,
|
|
|
HttpServletResponse response,
|
|
@@ -110,10 +109,8 @@ public class JwtAuthorizeEndpoint extends AuthorizeBaseEndpoint{
|
|
|
return adapter.authorize(modelAndView);
|
|
|
}
|
|
|
|
|
|
- @Operation(summary = "JWT JWK元数据接口", description = "参数mxk_metadata_APPID",method="GET")
|
|
|
- @RequestMapping(
|
|
|
- value = "/metadata/jwt/" + WebConstants.MXK_METADATA_PREFIX + "{appid}.{mediaType}",
|
|
|
- method={RequestMethod.POST, RequestMethod.GET})
|
|
|
+ @Operation(summary = "JWT JWK元数据接口", description = "参数mxk_metadata_APPID")
|
|
|
+ @GetMapping(value = "/metadata/jwt/" + WebConstants.MXK_METADATA_PREFIX + "{appid}.{mediaType}")
|
|
|
@ResponseBody
|
|
|
public String metadata(HttpServletRequest request,
|
|
|
HttpServletResponse response,
|