ludc
2023-09-19 8169bb01de23d48a2ccd289fe3bc394b7821a4f5
Source/UBCS/ubcs-auth/src/main/java/com/vci/ubcs/auth/endpoint/BladeSocialEndpoint.java
@@ -26,10 +26,13 @@
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;
@@ -58,6 +61,19 @@
   }
   /**
    * 与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}")