mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-06-14 19:41:46 +08:00
Unnecessary path variable definition [WEB_ANNOTATION_NAMES]
This commit is contained in:
@@ -40,7 +40,7 @@ public class AuthorizeCredentialEndpoint extends AuthorizeBaseEndpoint{
|
||||
|
||||
@GetMapping("/get/{appId}")
|
||||
public Message<Accounts> get(
|
||||
@PathVariable("appId") String appId,
|
||||
@PathVariable String appId,
|
||||
@CurrentUser UserInfo currentUser){
|
||||
Apps app = getApp(appId);
|
||||
Accounts account = getAccounts(app,currentUser);
|
||||
|
||||
@@ -53,7 +53,7 @@ public class AuthorizeEndpoint extends AuthorizeBaseEndpoint{
|
||||
//all single sign on url
|
||||
@Operation(summary = "认证总地址接口", description = "参数应用ID,分发到不同应用的认证地址",method="GET")
|
||||
@GetMapping("/authz/{id}")
|
||||
public ModelAndView authorize(HttpServletRequest request,@PathVariable("id") String id){
|
||||
public ModelAndView authorize(HttpServletRequest request,@PathVariable String id){
|
||||
Apps app = getApp(id);
|
||||
WebContext.setAttribute(WebConstants.SINGLE_SIGN_ON_APP_ID, app.getId());
|
||||
ModelAndView modelAndView = WebContext.redirect(app.getLoginUrl());
|
||||
|
||||
@@ -50,7 +50,7 @@ public class AuthorizeProtectedEndpoint{
|
||||
|
||||
@GetMapping("/authz/protected")
|
||||
public ModelAndView authorizeProtected(
|
||||
@RequestParam("password") String password,
|
||||
@RequestParam String password,
|
||||
@RequestParam("redirect_uri") String redirectUri,
|
||||
@CurrentUser UserInfo currentUser){
|
||||
if( currentUser.getAppLoginPassword().equals(PasswordReciprocal.getInstance().encode(password))){
|
||||
|
||||
@@ -38,7 +38,7 @@ public class OnlineSessionEndpoint {
|
||||
|
||||
@Operation(summary = "在线ticket验证接口", description = "")
|
||||
@GetMapping(value="/validate")
|
||||
public String ticketValidate(@RequestParam(value ="ticket",required = true) String ticket) {
|
||||
public String ticketValidate(@RequestParam(required = true) String ticket) {
|
||||
Session session = sessionManager.get(ticket);
|
||||
return session == null ? "" : session.getId();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user