Opauth strategy for Tencent QQ authentication.
Based on Opauth's Facebook Oauth2 Strategy
-
Make sure your cake installation supports UTF8
-
Install Opauth-TencentQQ:
cd path_to_opauth/Strategy git clone git://github.com/fsgmhoward/opauth-tencentqq.git TencentQQ
-
Create Tencent QQ Application at http://open.qq.com/ or http://connect.qq.com/ <P.S.: The website data on these two sites are SEPERATED>
- It is a web application
- Callback: http://path_to_opauth/qq_callback
-
Configure Opauth-TencentQQ strategy with
key
andsecret
. -
Direct user to
http://path_to_opauth/tencentqq
to authenticate -
get_info_from_weibo
is set TRUE when you want to retrieve information from Tencent Weibo. Ifget_info_from_weibo
is set TRUE, please ensure the permissionget_info
is enabled in the API settings and it is inscope
parameter.
Required parameters:
<?php
'TencentQQ' => array(
'key' => 'YOUR APP KEY',
'secret' => 'YOUR APP SECRET',
'scope' => 'get_user_info,get_info',
'get_info_from_weibo' => TRUE|FALSE
)
Opauth-TencentQQ is MIT Licensed
The MIT License (MIT)
Copyright (c) 2015 fsgmhoward
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.