Merge lp:~kobe24-lixiang/account-plugins/account-plugins into lp:account-plugins

Proposed by kobe
Status: Merged
Approved by: Alberto Mardegan
Approved revision: no longer in the source branch.
Merged at revision: 99
Proposed branch: lp:~kobe24-lixiang/account-plugins/account-plugins
Merge into: lp:account-plugins
Diff against target: 97 lines (+29/-25)
4 files modified
configure.ac (+13/-13)
data/providers/sohu.provider.in.in (+10/-9)
debian/changelog (+4/-1)
src/config.vapi (+2/-2)
To merge this branch: bzr merge lp:~kobe24-lixiang/account-plugins/account-plugins
Reviewer Review Type Date Requested Status
PS Jenkins bot (community) continuous-integration Approve
Alberto Mardegan (community) Approve
Review via email: mp+157818@code.launchpad.net

Commit message

Authentication of Sohu using oAuth2.0.

Description of the change

Authentication of Sohu using oAuth2.0.

To post a comment you must log in.
Revision history for this message
Alberto Mardegan (mardy) wrote :

Hi Kobe, thank you very much for your contribution. We'd love to see it incorporate in to Ubuntu, but first I need to ask you to sign the contributor agreement. It's a straight forward process, and you can find full details here:

http://www.canonical.com/contributors

Please let me know once you've completed the form.

Thanks again.

Revision history for this message
kobe (kobe24-lixiang) wrote :

Hi,
I had signed the contributor agreement.
Regards,
Kobe Lee

At 2013-04-10 21:41:20,"Alberto Mardegan" <email address hidden> wrote:
>Hi Kobe, thank you very much for your contribution. We'd love to see it incorporate in to Ubuntu, but first I need to ask you to sign the contributor agreement. It's a straight forward process, and you can find full details here:
>
>http://www.canonical.com/contributors
>
>Please let me know once you've completed the form.
>
>Thanks again.
>--
>https://code.launchpad.net/~kobe24-lixiang/account-plugins/account-plugins/+merge/157818
>You are the owner of lp:~kobe24-lixiang/account-plugins/account-plugins.

Revision history for this message
Alberto Mardegan (mardy) wrote :

Thanks Kobe! I tested it and it works fine!

review: Approve
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :

FAILED: Autolanding.
No commit message was specified in the merge proposal. Hit 'Add commit message' on the merge proposal web page or follow the link below. You can approve the merge proposal yourself to rerun.
https://code.launchpad.net/~kobe24-lixiang/account-plugins/account-plugins/+merge/157818/+edit-commit-message

review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) :
review: Approve (continuous-integration)
99. By kobe

Authentication of Sohu using oAuth2.0. Fixes: https://bugs.launchpad.net/bugs/1166089.

Approved by PS Jenkins bot, Alberto Mardegan.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'configure.ac'
--- configure.ac 2013-03-21 08:24:18 +0000
+++ configure.ac 2013-04-09 08:52:24 +0000
@@ -172,19 +172,19 @@
172AC_SUBST(SINA_CONSUMER_KEY, ["$sina_consumer_key"])172AC_SUBST(SINA_CONSUMER_KEY, ["$sina_consumer_key"])
173AC_SUBST(SINA_CONSUMER_SECRET, ["$sina_consumer_secret"])173AC_SUBST(SINA_CONSUMER_SECRET, ["$sina_consumer_secret"])
174174
175# Set Sohu consumer key/secret175# Set Sohu client id/secret
176AC_ARG_WITH(sohu-consumer-key,176AC_ARG_WITH(sohu-client-id,
177 [AS_HELP_STRING([--with-sohu-consumer-key],177 [AS_HELP_STRING([--with-sohu-client-id],
178 [Sohu consumer key])],178 [Sohu client id])],
179 [sohu_consumer_key=$withval],179 [sohu_client_id=$withval],
180 [sohu_consumer_key="YcRgcVD31M241lWRJuU0"])180 [sohu_client_id="dXucVvzJseF3wFfeDBqE"])
181AC_ARG_WITH(sohu-consumer-secret,181AC_ARG_WITH(sohu-client-secret,
182 [AS_HELP_STRING([--with-sohu-consumer-secret],182 [AS_HELP_STRING([--with-sohu-client-secret],
183 [Sohu consumer secret])],183 [Sohu client secret])],
184 [sohu_consumer_secret=$withval],184 [sohu_client_secret=$withval],
185 [sohu_consumer_secret="!2(z%LRmy7xTN(x3cm$)2m*domKNT(s00=qN4Vxh"])185 [sohu_client_secret="XuOg9=djoUMA%BRRPO)X=(8FExQz8T$9DahIj=9u"])
186AC_SUBST(SOHU_CONSUMER_KEY, ["$sohu_consumer_key"])186AC_SUBST(SOHU_CLIENT_ID, ["$sohu_client_id"])
187AC_SUBST(SOHU_CONSUMER_SECRET, ["$sohu_consumer_secret"])187AC_SUBST(SOHU_CLIENT_SECRET, ["$sohu_client_secret"])
188188
189# Set Windows Live client id189# Set Windows Live client id
190AC_ARG_WITH(windows-live-client-id,190AC_ARG_WITH(windows-live-client-id,
191191
=== modified file 'data/providers/sohu.provider.in.in'
--- data/providers/sohu.provider.in.in 2013-02-25 06:25:34 +0000
+++ data/providers/sohu.provider.in.in 2013-04-09 08:52:24 +0000
@@ -9,16 +9,17 @@
9 <template>9 <template>
10 <group name="auth">10 <group name="auth">
11 <setting name="method">oauth2</setting>11 <setting name="method">oauth2</setting>
12 <setting name="mechanism">HMAC-SHA1</setting>12 <setting name="mechanism">user_agent</setting>
13 <group name="oauth2">13 <group name="oauth2">
14 <group name="HMAC-SHA1">14 <group name="user_agent">
15 <setting name="RequestEndpoint">http://api.t.sohu.com/oauth/request_token</setting>15 <setting name="Host">api.t.sohu.com</setting>
16 <setting name="TokenEndpoint">http://api.t.sohu.com/oauth/access_token</setting>16 <setting name="AuthPath">/oauth2/authorize</setting>
17 <setting name="AuthorizationEndpoint">http://api.t.sohu.com/oauth/authorize</setting>17 <setting name="TokenPath">/oauth2/access_token</setting>
18 <setting name="Callback">https://wiki.ubuntu.com/</setting>18 <setting name="RedirectUri">http://www.ubuntukylin.com/</setting>
19 <setting name="ConsumerKey">@SOHU_CONSUMER_KEY@</setting>19 <setting name="ResponseType">token</setting>
20 <setting name="ConsumerSecret">@SOHU_CONSUMER_SECRET@</setting>20 <setting type="as" name="Scope">['basic']</setting>
21 <setting name="AllowedSchemes" type="as">['https','http']</setting>21 <setting name="ClientId">@SOHU_CLIENT_ID@</setting>
22 <setting name="ClientSecret">@SOHU_CLIENT_SECRET@</setting>
22 </group>23 </group>
23 </group>24 </group>
24 </group>25 </group>
2526
=== modified file 'debian/changelog'
--- debian/changelog 2013-03-20 15:24:49 +0000
+++ debian/changelog 2013-04-09 08:52:24 +0000
@@ -3,7 +3,10 @@
3 [ Jonathan Davies ]3 [ Jonathan Davies ]
4 * Added account-plugin-linkedin.4 * Added account-plugin-linkedin.
55
6 -- Jonathan Davies <jpds@ubuntu.com> Wed, 20 Mar 2013 10:17:55 +00006 [ Kobe Lee ]
7 * authentication of Sohu using oAuth2.0 (LP: #1166089).
8
9 -- Kobe Lee (kylinkobe) <kobe24_lixiang@126.com> Tue, 09 Apr 2013 16:18:53 +0800
710
8account-plugins (0.10bzr13.03.19-0ubuntu1) raring; urgency=low11account-plugins (0.10bzr13.03.19-0ubuntu1) raring; urgency=low
912
1013
=== modified file 'src/config.vapi'
--- src/config.vapi 2012-11-12 11:24:22 +0000
+++ src/config.vapi 2013-04-09 08:52:24 +0000
@@ -34,7 +34,7 @@
34 public const string IDENTICA_CONSUMER_SECRET;34 public const string IDENTICA_CONSUMER_SECRET;
35 public const string SINA_CONSUMER_KEY;35 public const string SINA_CONSUMER_KEY;
36 public const string SINA_CONSUMER_SECRET;36 public const string SINA_CONSUMER_SECRET;
37 public const string SOHU_CONSUMER_KEY;37 public const string SOHU_CLIENT_ID;
38 public const string SOHU_CONSUMER_SECRET;38 public const string SOHU_CLIENT_SECRET;
39 public const string WINDOWS_LIVE_CLIENT_ID;39 public const string WINDOWS_LIVE_CLIENT_ID;
40}40}

Subscribers

People subscribed via source and target branches

to all changes: