~ps-jenkins/account-plugins/latestsnapshot-0.11daily13.06.13-0ubuntu1

« back to all changes in this revision

Viewing changes to data/providers/sina.provider.in.in

  • Committer: Tarmac
  • Author(s): Zhang Zhao
  • Date: 2013-04-10 14:29:22 UTC
  • mfrom: (97.1.3 account-plugins)
  • Revision ID: tarmac-20130410142922-ffds0m8qsayaj09i
Fix Sina account creation

Sina abandoned oauth1 at the end of 2012.
and the domain are changing from api.sina.com.cn to api.weibo.com. Fixes: https://bugs.launchpad.net/bugs/1052919.

Approved by PS Jenkins bot, Alberto Mardegan.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<?xml version="1.0" encoding="UTF-8" ?>
 
1
<?xml version="1.0" encoding="UTF-8"?>
2
2
<provider id="sina">
3
3
  <name>Sina</name>
4
4
  <icon>sina</icon>
5
5
  <translations>account-plugins</translations>
6
 
  <domains>.*t\.sina\.com\.cn</domains>
 
6
  <domains>.*weibo\.com</domains>
7
7
  <plugin>generic-oauth</plugin>
8
8
 
9
9
  <template>
10
10
    <group name="auth">
11
11
      <setting name="method">oauth2</setting>
12
 
      <setting name="mechanism">HMAC-SHA1</setting>
 
12
      <setting name="mechanism">user_agent</setting>
13
13
      <group name="oauth2">
14
 
        <group name="HMAC-SHA1">
15
 
          <setting name="RequestEndpoint">http://api.t.sina.com.cn/oauth/request_token</setting>
16
 
          <setting name="TokenEndpoint">http://api.t.sina.com.cn/oauth/access_token</setting>
17
 
          <setting name="AuthorizationEndpoint">http://api.t.sina.com.cn/oauth/authorize</setting>
18
 
          <setting name="Callback">http://wiki.ubuntu.com/</setting>
19
 
          <setting name="ConsumerKey">@SINA_CONSUMER_KEY@</setting>
20
 
          <setting name="ConsumerSecret">@SINA_CONSUMER_SECRET@</setting>
21
 
          <setting name="AllowedSchemes" type="as">['https','http']</setting>
 
14
        <group name="user_agent">
 
15
          <setting name="Host">api.weibo.com</setting>
 
16
          <setting name="AuthPath">oauth2/authorize</setting>
 
17
          <setting name="TokenPath">oauth2/access_token</setting>
 
18
          <setting name="RedirectUri">https://wiki.ubuntu.com/</setting>
 
19
          <setting name="ResponseType">token</setting>
 
20
          <setting name="ClientId">@SINA_CLIENT_ID@</setting>
 
21
          <setting name="ClientSecret">@SINA_CLIENT_SECRET@</setting>
22
22
        </group>
23
23
      </group>
24
24
    </group>