We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
config/services.php
'wechat_service_account' => [ 'client_id' => env('WECHAT_SERVICE_ACCOUNT_APP_ID'), 'client_secret' => env('WECHAT_SERVICE_ACCOUNT_APP_SECRET'), 'redirect' => env('WECHAT_SERVICE_ACCOUNT_CALLBACK_URL'), 'scopes' => 'snsapi_base', ],
public function redirectToProvider($provider) { return Socialite::driver($provider) ->scopes(config("services.{$provider}.scopes")) ->redirect(); }
expected result:
https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=http%3A%2F%2Fexample.com%2Flogin%2Fwechat-service-account%2Fcallback&scope=snsapi_base&response_type=code&state=asdf&appid=wxdb123456
result:
https://open.weixin.qq.com/connect/oauth2/authorize?redirect_uri=http%3A%2F%2Fexample.com%2Flogin%2Fwechat-service-account%2Fcallback&scope=snsapi_userinfo%2Csnsapi_base&response_type=code&state=asdf&appid=wxdb123456
The text was updated successfully, but these errors were encountered:
HACK: snsapi_base overwrite snsapi_userinfo. #10
5cf7e79
e9cff73
HACK: snsapi_base overwrite snsapi_userinfo. laravel-fans/socialite-p…
cafa410
…roviders#10
2a05b97
a472958
sinkcup
Successfully merging a pull request may close this issue.
config/services.php
expected result:
result:
The text was updated successfully, but these errors were encountered: