Class WeChatWorkAuthController

java.lang.Object
com.bytedesk.core.rbac.auth.wechat_work.WeChatWorkAuthController

@RestController @RequestMapping("/auth/wechatwork") @Description("WeChat Work OAuth Login") public class WeChatWorkAuthController extends Object
  • Field Details

  • Constructor Details

    • WeChatWorkAuthController

      public WeChatWorkAuthController()
  • Method Details

    • authorize

      @GetMapping("/authorize") public org.springframework.http.ResponseEntity<?> authorize(@RequestParam(value="redirectUri",required=false) String redirectUri, @RequestParam(value="state",required=false) String state, @RequestParam(value="scope",required=false) String scope, @RequestParam(value="scene",required=false) String scene)
      生成企业微信网页授权链接 外部H5/PC网页:使用 https://open.work.weixin.qq.com/wwopen/sso/qrConnect?appid=CORPID&agentid=AGENTID&redirect_uri=ENCODE_URL&state=STATE 移动端内置浏览器(微信/企业微信内):可使用 https://open.weixin.qq.com/connect/oauth2/authorize?appid=CORPID&redirect_uri=ENCODE_URL&response_type=code&scope=snsapi_base&state=STATE#wechat_redirect
    • login

      @PostMapping("/login") @ActionAnnotation(title="auth", action="\u5bc6\u7801\u767b\u5f55", description="Login with WeCom Code") public org.springframework.http.ResponseEntity<?> login(@RequestBody WeChatWorkLoginRequest requestBody, jakarta.servlet.http.HttpServletRequest httpRequest)