{"action":"created","issue":{"url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/2","repository_url":"https://api.github.com/repos/SocialiteProviders/Weixin","labels_url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/2/comments","events_url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/2/events","html_url":"https://github.com/SocialiteProviders/Weixin/pull/2","id":147380354,"number":2,"title":"Add auth_base_url config.","user":{"login":"holmescn","id":548039,"avatar_url":"https://avatars.githubusercontent.com/u/548039?v=3","gravatar_id":"","url":"https://api.github.com/users/holmescn","html_url":"https://github.com/holmescn","followers_url":"https://api.github.com/users/holmescn/followers","following_url":"https://api.github.com/users/holmescn/following{/other_user}","gists_url":"https://api.github.com/users/holmescn/gists{/gist_id}","starred_url":"https://api.github.com/users/holmescn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/holmescn/subscriptions","organizations_url":"https://api.github.com/users/holmescn/orgs","repos_url":"https://api.github.com/users/holmescn/repos","events_url":"https://api.github.com/users/holmescn/events{/privacy}","received_events_url":"https://api.github.com/users/holmescn/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-11T10:15:21Z","updated_at":"2016-04-12T17:12:37Z","closed_at":"2016-04-11T18:23:31Z","pull_request":{"url":"https://api.github.com/repos/SocialiteProviders/Weixin/pulls/2","html_url":"https://github.com/SocialiteProviders/Weixin/pull/2","diff_url":"https://github.com/SocialiteProviders/Weixin/pull/2.diff","patch_url":"https://github.com/SocialiteProviders/Weixin/pull/2.patch"},"body":"Since the original code hard code the auth url, but that url is used in wechat client. I add a new config parameter in `config\\services.php`:\r\n\r\n    'weixin': [\r\n        'client_id' => env('WEIXIN_KEY'),\r\n        'client_secret' => env('WEIXIN_SECRET'),\r\n        'redirect' => env('WEIXIN_REDIRECT_URI'),\r\n        'auth_base_url' => env('WEIXIN_AUTH_BASE_URL', 'https://open.weixin.qq.com/connect/qrconnect')\r\n    ]\r\n\r\nThen the provider could show a qrcode, and user could login with wechat client. the code keeps the compatibility with the original one. I think the configuration should be written in the doc."},"comment":{"url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/comments/209011807","html_url":"https://github.com/SocialiteProviders/Weixin/pull/2#issuecomment-209011807","issue_url":"https://api.github.com/repos/SocialiteProviders/Weixin/issues/2","id":209011807,"user":{"login":"DraperStudio","id":15245398,"avatar_url":"https://avatars.githubusercontent.com/u/15245398?v=3","gravatar_id":"","url":"https://api.github.com/users/DraperStudio","html_url":"https://github.com/DraperStudio","followers_url":"https://api.github.com/users/DraperStudio/followers","following_url":"https://api.github.com/users/DraperStudio/following{/other_user}","gists_url":"https://api.github.com/users/DraperStudio/gists{/gist_id}","starred_url":"https://api.github.com/users/DraperStudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DraperStudio/subscriptions","organizations_url":"https://api.github.com/users/DraperStudio/orgs","repos_url":"https://api.github.com/users/DraperStudio/repos","events_url":"https://api.github.com/users/DraperStudio/events{/privacy}","received_events_url":"https://api.github.com/users/DraperStudio/received_events","type":"User","site_admin":false},"created_at":"2016-04-12T17:12:37Z","updated_at":"2016-04-12T17:12:37Z","body":"@holmescn you can now pull in the 2.1 release to use this configuration."}}