Search 1.9 billion lines of Odoo code on GitHub

auth_oauth_extended

Author: Odoo CN, Jeffery <jeffery9@gmail.com>
License: no license
Branch: master
Repository: kevin070982/odoo-project-10.0
Dependencies: auth_oauth
Languages: Markdown (21, 9.3%), Python (172, 75.8%), and XML (34, 15.0%)
Other repositories: Guobower/addons-2, alangwansui/addons, fengyunsen/addons, kodingway/addons, luoguizhou/addons, marcelsavegnago/odoo-cn-addons, msntop/addons, odoo-china/addons, odoo-cn/addons, rickpei/addons, sasakuma/addons, teazj/addons, torans/addons, and yasmanycastillo/addons

<h1>auth<em>oauth</em>extended [have merged into odoo-cn/addons ]</h1> <p>for qq/weixin/weibo authorization and login into Odoo</p> <p>provider | authorize url | validation url | user detail url | scope --------|-------------|-----------|---------|----- qq | https://graph.qq.com/oauth2.0/authorize | https://graph.qq.com/oauth2.0/me | https://graph.qq.com/oauth2.0/get<em>user</em>info | userinfo weixin| https://open.weixin.qq.com/connect/oauth2/authorize | https://api.weixin.qq.com/sns/oauth2/access<em>token | https://api.weixin.qq.com/sns/userinfo | snsapi</em>userinfo weibo | https://api.weibo.com/oauth2/authorize | https://api.weibo.com/oauth2/access<em>token | https://api.weibo.com/oauth2/get</em>token<em>info | email | dingtalk | https://oapi.dingtalk.com/connect/oauth2/sns</em>authorize | https://oapi.dingtalk.com/sns/get<em>sns</em>token | https://oapi.dingtalk.com/sns/getuserinfo | snsapi_login</p> <p><strong>comment</strong></p> <p>for qq oauth provider, need to fix controller to remove &#39;+&#39; from the returned json like this.</p> <p><code> /auth_oauth/signin?access_token=CC75562316165BAC74675C1853121E85&amp;expires_in=7776000&amp;state=%7B%22p%22%3A%2B12%2C%2B%22r%22%3A%2B%22http%253A%252F%252Fo.odoo123.com%252Fweb%253F%22%2C%2B%22d%22%3A%2B%22odoo123%22%7D </code></p> <p>decode as </p> <p><code> /auth_oauth/signin?access_token=CC75562316165BAC74675C1853121E85&amp;expires_in=7776000&amp;state={&quot;p&quot;:+5,+&quot;r&quot;:+&quot;http%3A%2F%2Flocalhost%3A8069%2Fweb%3F&quot;,+&quot;d&quot;:+&quot;zxhl_oa&quot;} </code></p> <p>so need replace &#39;+&#39; with space </p> <p><code> kw = simplejson.loads(simplejson.dumps(kw).replace(&#39;+&#39;,&#39;&#39;)) </code></p>