14 changed files with 116 additions and 37 deletions
@ -0,0 +1,37 @@ |
|||
package com.epmet.controller; |
|||
|
|||
import com.epmet.commons.tools.annotation.LoginUser; |
|||
import com.epmet.commons.tools.security.dto.TokenDto; |
|||
import com.epmet.commons.tools.utils.Result; |
|||
import com.epmet.service.ComponentVerifyTicketService; |
|||
import org.springframework.beans.factory.annotation.Autowired; |
|||
import org.springframework.web.bind.annotation.PathVariable; |
|||
import org.springframework.web.bind.annotation.RequestMapping; |
|||
import org.springframework.web.bind.annotation.RequestParam; |
|||
import org.springframework.web.bind.annotation.RestController; |
|||
|
|||
import javax.servlet.http.HttpServletRequest; |
|||
import javax.servlet.http.HttpServletResponse; |
|||
|
|||
/** |
|||
* @Author zxc |
|||
* @CreateTime 2020/7/10 9:04 |
|||
*/ |
|||
@RestController |
|||
@RequestMapping("mpweb") |
|||
public class AuthRedirectController { |
|||
|
|||
@Autowired |
|||
private ComponentVerifyTicketService componentVerifyTicketService; |
|||
|
|||
/** |
|||
* @Description 授权回调URL |
|||
* @param |
|||
* @author zxc |
|||
*/ |
|||
public Result redirectUri(HttpServletRequest request, HttpServletResponse response, @LoginUser TokenDto tokenDto, @RequestParam("authAppId")String authAppId){ |
|||
componentVerifyTicketService.redirectUri(request,response,tokenDto,authAppId); |
|||
return new Result(); |
|||
} |
|||
|
|||
} |
Loading…
Reference in new issue