socialite
socialite copied to clipboard
微信可以增加网站应用的授权么
目前好像是针对公众号,网站应用无法构建正确的接口地址
我也在找啊,都是基于"https://open.weixin.qq.com/connect" 去生成的链接,但是WEB端登录的链接是https://login.work.weixin.qq.com/wwlogin/sso/login?login_type=LOGIN_TYPE&appid=APPID&redirect_uri=REDIRECT_URI&state=STATE
https://developers.weixin.qq.com/doc/oplatform/Website_App/WeChat_Login/Wechat_Login.html
@overtrue 大佬,新年快乐,过完年能否加上企业微信WEB登录URL生成,目前只能生成手机端登录的URL
wework 中
public function getAuthUrl(): string { // 网页授权登录 if (empty($this->agentId)) { $queries = [ 'appid' => $this->getClientId(), 'redirect_uri' => $this->redirectUrl, 'response_type' => 'code', 'scope' => $this->formatScopes($this->scopes, $this->scopeSeparator), 'state' => $this->state, ];
return sprintf('https://open.weixin.qq.com/connect/oauth2/authorize?%s#wechat_redirect', http_build_query($queries));
}
// 第三方网页应用登录(扫码登录)
return $this->getQrConnectUrl();
}
但是网站应用扫码登录的构造网址是:https://open.weixin.qq.com/connect/qrconnect?appid=APPID&redirect_uri=REDIRECT_URI&response_type=code&scope=SCOPE&state=STATE#wechat_redirect,这个网址构造的开头是不同的。能够增加相应的分类。