Merge lp:~jpds/account-plugins/linkedin-plugin into lp:account-plugins
- linkedin-plugin
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Alberto Mardegan |
Approved revision: | 113 |
Merged at revision: | 96 |
Proposed branch: | lp:~jpds/account-plugins/linkedin-plugin |
Merge into: | lp:account-plugins |
Diff against target: |
196 lines (+94/-2) 10 files modified
Makefile.am (+4/-1) configure.ac (+15/-0) data/providers/linkedin.provider.in.in (+27/-0) data/services/linkedin-microblog.service.in (+21/-0) data/webkit-options/www.linkedin.com.conf (+5/-0) debian/account-plugin-linkedin.install (+3/-0) debian/changelog (+7/-0) debian/control (+8/-0) debian/rules (+3/-1) po/POTFILES.skip (+1/-0) |
To merge this branch: | bzr merge lp:~jpds/account-plugins/linkedin-plugin |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Alberto Mardegan (community) | Approve | ||
PS Jenkins bot (community) | continuous-integration | Approve | |
Review via email: mp+154406@code.launchpad.net |
Commit message
Created account-
Description of the change
This branch adds a account-
David King (amigadave) wrote : | # |
- 104. By Jonathan Davies
-
Corrected linkedin-
microblog. service. in to say Linkedin.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:103
No commit message was specified in the merge proposal. Click on the following link and set the commit message (if you want a jenkins rebuild you need to trigger it yourself):
https:/
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
- 105. By Jonathan Davies
-
Removed mispasted Facebook parts from configure.ac.
- 106. By Jonathan Davies
-
Fixed service ID for linkedin-microblog.
- 107. By Jonathan Davies
-
Removed extra line in control.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:107
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Alberto Mardegan (mardy) wrote : | # |
Looks good, thanks! I'll experiment some more with signon-ui, to see if we can fix the issue with the missing scrollbars.
Meanwhile, could you please keep the files in alphabetical order:
8 - data/providers/
9 + data/providers/
10 + data/providers/
(there are more places where this should be changed, please see the diff below).
- 108. By Jonathan Davies
-
Place files in alphabetical order.
- 109. By Jonathan Davies
-
Alphabetical order on these files too.
Alberto Mardegan (mardy) wrote : | # |
Hi Jonathan, please add this to the webkit-options file:
VerticalScr
This doesn't work yet, but it will when the fix for bug 1158173 will be integrated (until then this line is anyway harmless, so please write it already now).
- 110. By Jonathan Davies
-
Force the showing of scrollbar in webkit options.
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:109
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:110
http://
Executed test runs:
FAILURE: http://
FAILURE: http://
Click here to trigger a rebuild:
http://
- 111. By Jonathan Davies
-
Added missing \ to Makefile.am.
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:111
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Alberto Mardegan (mardy) wrote : | # |
I've been now testing it with the new signon-ui, and it works well.
Just a couple of changes:
126 +UsernameField = input[name="email"]
127 +PasswordField = input[name="pass"]
Remove the password field, and change the username one to:
UsernameField = input[name=
Then, in the .provider file:
70 + <name> LinkedIn® </name>
Remove the spaces inside the element: they cause the label not to be properly left-aligned in the UI.
- 112. By Jonathan Davies
-
webkit-
options/ www.linkedin. com.conf: Removed password and set UsernameField to
session_key. - 113. By Jonathan Davies
-
Removed spaces in provider name.
Alberto Mardegan (mardy) wrote : | # |
Excellent, thanks!!!
Preview Diff
1 | === modified file 'Makefile.am' | |||
2 | --- Makefile.am 2013-03-19 14:47:46 +0000 | |||
3 | +++ Makefile.am 2013-03-21 15:43:05 +0000 | |||
4 | @@ -60,6 +60,7 @@ | |||
5 | 60 | data/providers/foursquare.provider.in.in \ | 60 | data/providers/foursquare.provider.in.in \ |
6 | 61 | data/providers/google.provider.in.in \ | 61 | data/providers/google.provider.in.in \ |
7 | 62 | data/providers/identica.provider.in.in \ | 62 | data/providers/identica.provider.in.in \ |
8 | 63 | data/providers/linkedin.provider.in.in \ | ||
9 | 63 | data/providers/sina.provider.in.in \ | 64 | data/providers/sina.provider.in.in \ |
10 | 64 | data/providers/sohu.provider.in.in \ | 65 | data/providers/sohu.provider.in.in \ |
11 | 65 | data/providers/twitter.provider.in.in \ | 66 | data/providers/twitter.provider.in.in \ |
12 | @@ -83,6 +84,7 @@ | |||
13 | 83 | data/services/google-docs.service.in \ | 84 | data/services/google-docs.service.in \ |
14 | 84 | data/services/google-im.service.in \ | 85 | data/services/google-im.service.in \ |
15 | 85 | data/services/identica-microblog.service.in \ | 86 | data/services/identica-microblog.service.in \ |
16 | 87 | data/services/linkedin-microblog.service.in \ | ||
17 | 86 | data/services/picasa.service.in \ | 88 | data/services/picasa.service.in \ |
18 | 87 | data/services/sina-microblog.service.in \ | 89 | data/services/sina-microblog.service.in \ |
19 | 88 | data/services/sohu-microblog.service.in \ | 90 | data/services/sohu-microblog.service.in \ |
20 | @@ -103,7 +105,8 @@ | |||
21 | 103 | data/webkit-options/login.live.com.conf \ | 105 | data/webkit-options/login.live.com.conf \ |
22 | 104 | data/webkit-options/login.yahoo.com.conf \ | 106 | data/webkit-options/login.yahoo.com.conf \ |
23 | 105 | data/webkit-options/secure.flickr.com.conf \ | 107 | data/webkit-options/secure.flickr.com.conf \ |
25 | 106 | data/webkit-options/www.facebook.com.conf | 108 | data/webkit-options/www.facebook.com.conf \ |
26 | 109 | data/webkit-options/www.linkedin.com.conf | ||
27 | 107 | 110 | ||
28 | 108 | dist_bin_SCRIPTS = \ | 111 | dist_bin_SCRIPTS = \ |
29 | 109 | tools/account-console | 112 | tools/account-console |
30 | 110 | 113 | ||
31 | === modified file 'configure.ac' | |||
32 | --- configure.ac 2013-02-22 15:17:49 +0000 | |||
33 | +++ configure.ac 2013-03-21 15:43:05 +0000 | |||
34 | @@ -86,6 +86,20 @@ | |||
35 | 86 | AC_SUBST(TWITTER_CONSUMER_KEY, ["$twitter_consumer_key"]) | 86 | AC_SUBST(TWITTER_CONSUMER_KEY, ["$twitter_consumer_key"]) |
36 | 87 | AC_SUBST(TWITTER_CONSUMER_SECRET, ["$twitter_consumer_secret"]) | 87 | AC_SUBST(TWITTER_CONSUMER_SECRET, ["$twitter_consumer_secret"]) |
37 | 88 | 88 | ||
38 | 89 | # Set LinkedIn consumer key/secret. | ||
39 | 90 | AC_ARG_WITH(linkedin-consumer-key, | ||
40 | 91 | [AS_HELP_STRING([--with-linkedin-consumer-key], | ||
41 | 92 | [LinkedIn consumer key])], | ||
42 | 93 | [linkedin_consumer_key=$withval], | ||
43 | 94 | [linkedin_consumer_key="34gnzrg96iq5"]) | ||
44 | 95 | AC_ARG_WITH(linkedin-consumer-secret, | ||
45 | 96 | [AS_HELP_STRING([--with-linkedin-consumer-secret], | ||
46 | 97 | [LinkedIn consumer secret])], | ||
47 | 98 | [linkedin_consumer_secret=$withval], | ||
48 | 99 | [linkedin_consumer_secret="BazRki2LE8eZtcqh"]) | ||
49 | 100 | AC_SUBST(LINKEDIN_CONSUMER_KEY, ["$linkedin_consumer_key"]) | ||
50 | 101 | AC_SUBST(LINKEDIN_CONSUMER_SECRET, ["$linkedin_consumer_secret"]) | ||
51 | 102 | |||
52 | 89 | # Set Facebook client id | 103 | # Set Facebook client id |
53 | 90 | AC_ARG_WITH(facebook-client-id, | 104 | AC_ARG_WITH(facebook-client-id, |
54 | 91 | [AS_HELP_STRING([--with-facebook-client-id], | 105 | [AS_HELP_STRING([--with-facebook-client-id], |
55 | @@ -186,6 +200,7 @@ | |||
56 | 186 | data/providers/foursquare.provider.in | 200 | data/providers/foursquare.provider.in |
57 | 187 | data/providers/google.provider.in | 201 | data/providers/google.provider.in |
58 | 188 | data/providers/identica.provider.in | 202 | data/providers/identica.provider.in |
59 | 203 | data/providers/linkedin.provider.in | ||
60 | 189 | data/providers/sina.provider.in | 204 | data/providers/sina.provider.in |
61 | 190 | data/providers/sohu.provider.in | 205 | data/providers/sohu.provider.in |
62 | 191 | data/providers/twitter.provider.in | 206 | data/providers/twitter.provider.in |
63 | 192 | 207 | ||
64 | === added file 'data/providers/linkedin.provider.in.in' | |||
65 | --- data/providers/linkedin.provider.in.in 1970-01-01 00:00:00 +0000 | |||
66 | +++ data/providers/linkedin.provider.in.in 2013-03-21 15:43:05 +0000 | |||
67 | @@ -0,0 +1,27 @@ | |||
68 | 1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
69 | 2 | <provider id="linkedin"> | ||
70 | 3 | <name>LinkedIn®</name> | ||
71 | 4 | <icon>linkedin</icon> | ||
72 | 5 | <domains>*linkedin\.com</domains> | ||
73 | 6 | <translations>account-plugins</translations> | ||
74 | 7 | <plugin>generic-oauth</plugin> | ||
75 | 8 | |||
76 | 9 | <template> | ||
77 | 10 | <group name="auth"> | ||
78 | 11 | <setting name="method">oauth2</setting> | ||
79 | 12 | <setting name="mechanism">web_server</setting> | ||
80 | 13 | <group name="oauth2"> | ||
81 | 14 | <group name="web_server"> | ||
82 | 15 | <setting name="Host">www.linkedin.com</setting> | ||
83 | 16 | <setting name="AuthPath">uas/oauth2/authorization</setting> | ||
84 | 17 | <setting name="TokenPath">uas/oauth2/accessToken</setting> | ||
85 | 18 | <setting name="ClientId">@LINKEDIN_CONSUMER_KEY@</setting> | ||
86 | 19 | <setting name="ClientSecret">@LINKEDIN_CONSUMER_SECRET@</setting> | ||
87 | 20 | <setting name="RedirectUri">https://www.linkedin.com/</setting> | ||
88 | 21 | <setting name="ResponseType">code&state=sajfhaskncask</setting> | ||
89 | 22 | <setting type="as" name="Scope">['r_fullprofile','r_emailaddress']</setting> | ||
90 | 23 | </group> | ||
91 | 24 | </group> | ||
92 | 25 | </group> | ||
93 | 26 | </template> | ||
94 | 27 | </provider> | ||
95 | 0 | 28 | ||
96 | === added file 'data/services/linkedin-microblog.service.in' | |||
97 | --- data/services/linkedin-microblog.service.in 1970-01-01 00:00:00 +0000 | |||
98 | +++ data/services/linkedin-microblog.service.in 2013-03-21 15:43:05 +0000 | |||
99 | @@ -0,0 +1,21 @@ | |||
100 | 1 | <?xml version="1.0" encoding="UTF-8" ?> | ||
101 | 2 | <service id="linkedin-microblog"> | ||
102 | 3 | <type>microblogging</type> | ||
103 | 4 | <name>LinkedIn®</name> | ||
104 | 5 | <icon>linkedin</icon> | ||
105 | 6 | <provider>linkedin</provider> | ||
106 | 7 | <translations>account-plugins</translations> | ||
107 | 8 | |||
108 | 9 | <!-- default settings (account settings have precedence over these) --> | ||
109 | 10 | <template> | ||
110 | 11 | <group name="friends"> | ||
111 | 12 | <setting name="send_enabled" type="bool">true</setting> | ||
112 | 13 | <setting name="color">#1169E1</setting> | ||
113 | 14 | </group> | ||
114 | 15 | <group name="gwibber"> | ||
115 | 16 | <setting name="send_enabled" type="bool">true</setting> | ||
116 | 17 | <setting name="color">#1169E1</setting> | ||
117 | 18 | </group> | ||
118 | 19 | </template> | ||
119 | 20 | |||
120 | 21 | </service> | ||
121 | 0 | 22 | ||
122 | === added file 'data/webkit-options/www.linkedin.com.conf' | |||
123 | --- data/webkit-options/www.linkedin.com.conf 1970-01-01 00:00:00 +0000 | |||
124 | +++ data/webkit-options/www.linkedin.com.conf 2013-03-21 15:43:05 +0000 | |||
125 | @@ -0,0 +1,5 @@ | |||
126 | 1 | UsernameField = input[name="session_key"] | ||
127 | 2 | VerticalScrollBar = alwaysOn | ||
128 | 3 | # Force mobile version, so that layout does not scroll horizonally | ||
129 | 4 | # https://bugs.launchpad.net/1051596 | ||
130 | 5 | UserAgent = Mozilla/5.0 (iPhone; CPU iPhone OS 5_1_1 like Mac OS X) AppleWebKit/534.46 (KHTML, like Gecko) Version/5.1 Mobile/9B206 Safari/7534.48.3 | ||
131 | 0 | 6 | ||
132 | === added file 'debian/account-plugin-linkedin.install' | |||
133 | --- debian/account-plugin-linkedin.install 1970-01-01 00:00:00 +0000 | |||
134 | +++ debian/account-plugin-linkedin.install 2013-03-21 15:43:05 +0000 | |||
135 | @@ -0,0 +1,3 @@ | |||
136 | 1 | etc/signon-ui/webkit-options.d/www.linkedin.com.conf | ||
137 | 2 | usr/share/accounts/services/linkedin-microblog.service | ||
138 | 3 | usr/share/accounts/providers/linkedin.provider | ||
139 | 0 | 4 | ||
140 | === modified file 'debian/changelog' | |||
141 | --- debian/changelog 2013-03-19 17:12:22 +0000 | |||
142 | +++ debian/changelog 2013-03-21 15:43:05 +0000 | |||
143 | @@ -1,3 +1,10 @@ | |||
144 | 1 | account-plugins (0.10bzr13.03.19-0ubuntu2) UNRELEASED; urgency=low | ||
145 | 2 | |||
146 | 3 | [ Jonathan Davies ] | ||
147 | 4 | * Added account-plugin-linkedin. | ||
148 | 5 | |||
149 | 6 | -- Jonathan Davies <jpds@ubuntu.com> Wed, 20 Mar 2013 10:17:55 +0000 | ||
150 | 7 | |||
151 | 1 | account-plugins (0.10bzr13.03.19-0ubuntu1) raring; urgency=low | 8 | account-plugins (0.10bzr13.03.19-0ubuntu1) raring; urgency=low |
152 | 2 | 9 | ||
153 | 3 | * Add transitional dummy package for unity-asset-pool | 10 | * Add transitional dummy package for unity-asset-pool |
154 | 4 | 11 | ||
155 | === modified file 'debian/control' | |||
156 | --- debian/control 2013-03-19 18:41:45 +0000 | |||
157 | +++ debian/control 2013-03-21 15:43:05 +0000 | |||
158 | @@ -101,6 +101,14 @@ | |||
159 | 101 | Description: GNOME Control Center account plugin for single signon - sina | 101 | Description: GNOME Control Center account plugin for single signon - sina |
160 | 102 | GNOME Control Center account plugins for single signon | 102 | GNOME Control Center account plugins for single signon |
161 | 103 | 103 | ||
162 | 104 | Package: account-plugin-linkedin | ||
163 | 105 | Architecture: any | ||
164 | 106 | Depends: ${misc:Depends}, | ||
165 | 107 | account-plugin-generic-oauth, | ||
166 | 108 | unity-asset-pool (>> 0.8.24daily12.12.05-0ubuntu1) | ||
167 | 109 | Description: GNOME Control Center account plugin for single signon - LinkedIn | ||
168 | 110 | GNOME Control Center account plugins for single signon | ||
169 | 111 | |||
170 | 104 | Package: account-plugin-tools | 112 | Package: account-plugin-tools |
171 | 105 | Architecture: any | 113 | Architecture: any |
172 | 106 | Depends: ${shlibs:Depends}, ${misc:Depends}, | 114 | Depends: ${shlibs:Depends}, ${misc:Depends}, |
173 | 107 | 115 | ||
174 | === modified file 'debian/rules' | |||
175 | --- debian/rules 2012-12-07 16:45:47 +0000 | |||
176 | +++ debian/rules 2013-03-21 15:43:05 +0000 | |||
177 | @@ -15,7 +15,9 @@ | |||
178 | 15 | --with-google-client-id="759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com" \ | 15 | --with-google-client-id="759250720802-4sii0me9963n9fdqdmi7cepn6ub8luoh.apps.googleusercontent.com" \ |
179 | 16 | --with-google-client-secret="juFngKUcuhB7IRQqHtSLavqJ" \ | 16 | --with-google-client-secret="juFngKUcuhB7IRQqHtSLavqJ" \ |
180 | 17 | --with-flickr-consumer-key="d87224f0b467093b2a87fd788d950e27" \ | 17 | --with-flickr-consumer-key="d87224f0b467093b2a87fd788d950e27" \ |
182 | 18 | --with-flickr-consumer-secret="4c7e48102c226509" | 18 | --with-flickr-consumer-secret="4c7e48102c226509" \ |
183 | 19 | --with-linkedin-consumer-key="34gnzrg96iq5" \ | ||
184 | 20 | --with-linkedin-consumer-secret="BazRki2LE8eZtcqh" | ||
185 | 19 | 21 | ||
186 | 20 | override_dh_install: | 22 | override_dh_install: |
187 | 21 | rm -f debian/*/usr/lib/*/*/*.la | 23 | rm -f debian/*/usr/lib/*/*/*.la |
188 | 22 | 24 | ||
189 | === modified file 'po/POTFILES.skip' | |||
190 | --- po/POTFILES.skip 2012-10-05 07:39:20 +0000 | |||
191 | +++ po/POTFILES.skip 2013-03-21 15:43:05 +0000 | |||
192 | @@ -1,4 +1,5 @@ | |||
193 | 1 | data/services/facebook-microblog.service.in | 1 | data/services/facebook-microblog.service.in |
194 | 2 | data/services/identica-microblog.service.in | 2 | data/services/identica-microblog.service.in |
195 | 3 | data/services/linkedin-microblog.service.in | ||
196 | 3 | data/services/twitter-microblog.service.in | 4 | data/services/twitter-microblog.service.in |
197 | 4 | 5 |
Copy/paste error with the Facebook consumer key in configure.ac?