| | |
| | | import org.springblade.core.social.utils.SocialUtil; |
| | | import org.springblade.core.tenant.annotation.NonDS; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | 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.RestController; |
| | | import org.springframework.web.servlet.ModelAndView; |
| | | |
| | | import javax.servlet.http.HttpServletRequest; |
| | | import javax.servlet.http.HttpServletResponse; |
| | | import java.io.IOException; |
| | | |
| | |
| | | } |
| | | |
| | | /** |
| | | * 与OA系统的单点登录 |
| | | */ |
| | | @GetMapping("/oauth/oasso") |
| | | public ModelAndView require(HttpServletRequest request, ModelAndView model) { |
| | | // 拿到用户的鉴权信息 |
| | | String userName = request.getParameter("username"); |
| | | |
| | | model.setViewName("login"); |
| | | return model; |
| | | } |
| | | |
| | | |
| | | /** |
| | | * 获取认证信息 |
| | | */ |
| | | @RequestMapping("/oauth/callback/{source}") |