Debian Codegraph @

docs/release-notes/2013.rst

raw
1 0.15.0 (2013-12-01)
2 *******************
3
4 Noteworthy changes
5 -------------------
6
7 - socialaccount: Added ``is_auto_signup_allowed`` to social account
8 adapter.
9
10 - facebook: Added a new setting: VERIFIED_EMAIL.
11
12 - socialaccount: a collision on email address when you sign up
13 using a third party social account is now more clearly explained:
14 "An account already exists with this email address. Please sign
15 in to that account first, then connect your Google account".
16
17 - account: You are now automatically logged in after confirming
18 your email address during sign up.
19
20 - account: The ``/accounts/login/`` view now supports AJAX requests.
21
22 - facebook: The fbconnect.js script is now more pluggable.
23
24 - socialaccount: Markus Kaiserswerth contributed a Feedly
25 provider, thanks!
26
27 - socialaccount: Dropped django-avatar support.
28
29 - openid: First, last and full name are now also queried together
30 with the email address. Thanks, @andrvb.
31
32 - openid: Compatibility fix for Django 1.6 (JSON serializer).
33
34 - account: Added support for ``ACCOUNT_CONFIRM_EMAIL_ON_GET``.
35
36
37 Backwards incompatible changes
38 ------------------------------
39
40 - Instead of directly rendering and returning a template, logging in
41 while the account is inactive or not yet confirmed now redirects to
42 two new views: ``/accounts/inactive/`` respectively
43 ``/accounts/confirm-email/``.
44
45 - The ``account/verification_sent.html`` template no longer receives the
46 email address in the context (``email``). Note that a message
47 containing that email address is still emitted using the messages
48 framework.
49
50 - The ``/accounts/confirm_email/key/`` view has been
51 renamed to ``/accounts/confirm-email/`` (human friendlier). Redirects
52 are in place to handle old still pending confirmations.
53
54 - Built-in support for django-avatar has been removed. Offering such
55 functionality means making choices which may not be valid for
56 everyone. For example, allauth was downloading the image (which can
57 take some time, or even block) in the context of the login, whereas
58 a better place might be some celery background job. Additionally, in
59 case of an error it simply ignored this. How about retries et al?
60 Also, do you want to copy the avatar once at sign up, or do you want
61 to update on each login? All in all, this functionality goes way
62 beyond authentication and should be addressed elsewhere, beyond
63 allauth scope. The original code has been preserved here so that you
64 can easily reinstate it in your own project:
65 https://gist.github.com/pennersr/7571752
66
67
68 0.14.2 (2013-11-16)
69 *******************
70
71 Noteworthy changes
72 -------------------
73
74 - Compatibility fix for logging in with Django 1.6.
75
76 - Maksim Rukomoynikov contributed a Russian translation, thanks!
77
78
79 Backwards incompatible changes
80 ------------------------------
81
82 - In case you were using the internal method
83 ``generate_unique_username``, note that its signature has changed. It
84 now takes a list of candidates to base the username on.
85
86
87 0.14.1 (2013-10-28)
88 *******************
89
90 Noteworthy changes
91 -------------------
92
93 - PyPi did not render the README.rst properly.
94
95
96 Backwards incompatible changes
97 ------------------------------
98
99 None
100
101
102 0.14.0 (2013-10-28)
103 *******************
104
105 Noteworthy changes
106 -------------------
107
108 - Stuart Ross contributed AngelList support, thanks!
109
110 - LinkedIn: profile fields that are to be fetched are now
111 configurable (``PROFILE_FIELDS`` provider-level setting).
112
113 - Udi Oron contributed a Hebrew translation, thanks!
114
115 - Add setting ``ACCOUNT_DEFAULT_HTTP_PROTOCOL`` (HTTPS support).
116
117 - George Whewell contributed Instagram support, thanks!
118
119 - Refactored adapter methods relating to creating and populating
120 ``User`` instances.
121
122 - User creation methods in the ``Default(Social)AccountAdapter`` now
123 have access to the ``request``.
124
125
126 Backwards incompatible changes
127 ------------------------------
128
129 - The ``socialaccount/account_inactive.html`` template has been
130 moved to ``account/account_inactive.html``.
131
132 - The adapter API for creating and populating users has been
133 overhauled. As a result, the ``populate_new_user`` adapter methods
134 have disappeared. Please refer to the section on "Creating and
135 Populating User Instances" for more information.
136
137
138 0.13.0 (2013-08-31)
139 *******************
140
141 Noteworthy changes
142 -------------------
143
144 - Koichi Harakawa contributed a Japanese translation, thanks!
145
146 - Added ``is_open_for_signup`` to DefaultSocialAccountAdapter.
147
148 - Added VK provider support.
149
150 - Marcin Spoczynski contributed a Polish translation, thanks!
151
152 - All views are now class-based.
153
154 - ``django.contrib.messages`` is now optional.
155
156 - "jresins" contributed a simplified Chinese, thanks!
157
158
159 Backwards incompatible changes
160 ------------------------------
161
162 - The password reset from key success response now redirects to a
163 "done" view (``/accounts/password/reset/key/done/``). This view has
164 its own ``account/password_reset_from_key_done.html`` template. In
165 previous versions, the success template was intertwined with the
166 ``account/password_reset_from_key.html`` template.
167
168
169 0.12.0 (2013-07-01)
170 *******************
171
172 Noteworthy changes
173 -------------------
174
175 - Added support for re-authenticated (forced prompt) by means of a
176 new ``action="reauthenticate"`` parameter to the ``{%
177 provider_login_url %}``
178
179 - Roberto Novaes contributed a Brazilian Portuguese translation,
180 thanks!
181
182 - Daniel Eriksson contributed a Swedish translation, thanks!
183
184 - You can now logout from both allauth and Facebook via a
185 Javascript helper: ``window.allauth.facebook.logout()``.
186
187 - Connecting a social account is now a flow that needs to be
188 explicitly triggered, by means of a ``process="connect"`` parameter
189 that can be passed along to the ``{% provider_login_url %}``, or a
190 ``process=connect`` GET parameter.
191
192 - Tomas Marcik contributed a Czech translation, thanks!
193
194
195 Backwards incompatible changes
196 ------------------------------
197
198 - The ``{% provider_login_url %}`` tag now takes an optional process
199 parameter that indicates how to process the social login. As a
200 result, if you include the template
201 ``socialaccount/snippets/provider_list.html`` from your own overridden
202 ``socialaccount/connections.html`` template, you now need to pass
203 along the process parameter as follows:
204 ``{% include "socialaccount/snippets/provider_list.html" with process="connect" %}``.
205
206 - Instead of inlining the required Facebook SDK Javascript wrapper
207 code into the HTML, it now resides into its own .js file (served
208 with ``{% static %}``). If you were using the builtin ``fbconnect.html``
209 this change should go by unnoticed.
210
211
212 0.11.1 (2013-06-04)
213 *******************
214
215 Noteworthy changes
216 -------------------
217
218 - Released (due to issue in disconnecting social accounts).
219
220 Backwards incompatible changes
221 ------------------------------
222
223 None
224
225
226 0.11.0 (2013-06-02)
227 *******************
228
229 Noteworthy changes
230 -------------------
231
232 - Moved logic whether or not a social account can be disconnected
233 to the ``SocialAccountAdapter`` (``validate_disconnect``).
234
235 - Added ``social_account_removed`` signal.
236
237 - Implemented CSRF protection
238 (http://tools.ietf.org/html/draft-ietf-oauth-v2-30#section-10.12).
239
240 - The ``user_logged_in`` signal now optionally receives a
241 ``sociallogin`` parameter, in case of a social login.
242
243 - Added ``social_account_added`` (contributed by orblivion, thanks).
244
245 - Hatem Nassrat contributed Bitly support, thanks!
246
247 - Bojan Mihelac contributed a Croatian translation, thanks!
248
249 - Messages (as in ``django.contrib.messages``) are now configurable
250 through templates.
251 - Added support for differentiating email handling (verification,
252 required) between local and social accounts:
253 ``SOCIALACCOUNT_EMAIL_REQUIRED`` and
254 ``SOCIALACCOUNT_EMAIL_VERIFICATION``.
255
256
257 Backwards incompatible changes
258 ------------------------------
259
260 None
261
262
263 0.10.1 (2013-04-16)
264 *******************
265
266 Noteworthy changes
267 -------------------
268
269 - Cleaning of ``username`` can now be overridden via
270 ``DefaultAccountAdapter.clean_username``
271
272 - Fixed potential error (``assert``) when connecting social
273 accounts.
274
275 - Added support for custom username handling in case of custom
276 user models (``ACCOUNT_USER_MODEL_USERNAME_FIELD``).
277
278
279 Backwards incompatible changes
280 ------------------------------
281
282 None
283
284
285 0.10.0 (2013-04-12)
286 *******************
287
288 Noteworthy changes
289 -------------------
290
291 - Chris Davis contributed Vimeo support, thanks!
292
293 - Added support for overriding the URL to return to after
294 connecting a social account
295 (``allauth.socialaccount.adapter.DefaultSocialAccountAdapter.get_connect_redirect_url``).
296
297 - Python 3 is now supported!
298
299 - Dropped dependency on (unmaintained?) oauth2 package, in favor
300 of requests-oauthlib.
301
302 - account: Email confirmation mails generated at signup can now
303 be differentiated from regular email confirmation mails by
304 placing e.g. a welcome message into the
305 ``account/email/email_confirmation_signup*`` templates. Thanks to
306 Sam Solomon for the patch.
307
308 - account: Moved User instance creation to adapter so that e.g.
309 username generation can be influenced. Thanks to John Bazik for
310 the patch.
311
312 - Robert Balfre contributed Dropbox support, thanks!
313
314 - socialaccount: Added support for Weibo.
315
316 - account: Added support for sending HTML email. Add
317 ``*_message.html`` templates and they will be automatically picked
318 up.
319
320 - Added support for passing along extra parameters to the OAuth2
321 authentication calls, such as ``access_type`` (Google) or
322 ``auth_type`` (Facebook).
323 - Both the login and signup view now immediately redirect to the
324 login redirect url in case the user was already authenticated.
325
326 - Added support for closing down signups in a pluggable fashion,
327 making it easy to hookup your own invitation handling mechanism.
328
329 - Added support for passing along extra parameters to the
330 ``FB.login`` API call.
331
332
333 Backwards incompatible changes
334 ------------------------------
335
336 - Logout no longer happens on GET request. Refer to the ``LogoutView``
337 documentation for more background information. Logging out on GET
338 can be restored by the setting ``ACCOUNT_LOGOUT_ON_GET``. Furthermore,
339 after logging out you are now redirected to
340 ``ACCOUNT_LOGOUT_REDIRECT_URL`` instead of rendering the
341 ``account/logout.html`` template.
342
343 - ``LOGIN_REDIRECT_URLNAME`` is now deprecated. Django 1.5 accepts both
344 URL names and URLs for ``LOGIN_REDIRECT_URL``, so we do so as well.
345
346 - ``DefaultAccountAdapter.stash_email_verified`` is now named
347 ``stash_verified_email``.
348
349 - Django 1.4.3 is now the minimal requirement.
350
351 - Dropped dependency on (unmaintained?) oauth2 package, in favor of
352 requests-oauthlib. So you will need to update your (virtual)
353 environment accordingly.
354
355 - We noticed a very rare bug that affects end users who add Google
356 social login to existing accounts. The symptom is you end up with
357 users who have multiple primary email addresses which conflicts
358 with assumptions made by the code. In addition to fixing the code
359 that allowed duplicates to occur, there is a management command
360 you can run if you think this effects you (and if it doesn't effect
361 you there is no harm in running it anyways if you are unsure):
362
363 - ``python manage.py account_unsetmultipleprimaryemails``
364
365 - Will silently remove primary flags for email addresses that
366 aren't the same as ``user.email``.
367
368 - If no primary ``EmailAddress`` is ``user.email`` it will pick one
369 at random and print a warning.
370
371 - The expiry time, if any, is now stored in a new column
372 ``SocialToken.expires_at``. Migrations are in place.
373
374 - Furthermore, Facebook started returning longer tokens, so the
375 maximum token length was increased. Again, migrations are in place.
376
377 - Login and signup views have been turned into class-based views.
378
379 - The template variable ``facebook_perms`` is no longer passed to the
380 "facebook/fbconnect.html" template. Instead, ``fb_login_options``
381 containing all options is passed.
382
383
384 0.9.0 (2013-01-30)
385 ******************
386
387 Noteworthy changes
388 -------------------
389
390 - account: ``user_signed_up`` signal now emits an optional
391 ``sociallogin`` parameter so that receivers can easily differentiate
392 between local and social signups.
393
394 - account: Added ``email_removed`` signal.
395
396 - socialaccount: Populating of User model fields is now
397 centralized in the adapter, splitting up ``name`` into ``first_name``
398 and ``last_name`` if these were not individually available.
399
400 - Ahmet Emre Aladağ contributed a Turkish translation, thanks!
401
402 - socialaccount: Added SocialAccountAdapter hook to allow for
403 intervention in social logins.
404
405 - google: support for Google's ``verified_email`` flag to determine
406 whether or not to send confirmation emails.
407
408 - Fábio Santos contributed a Portuguese translation, thanks!
409
410 - socialaccount: Added support for Stack Exchange.
411
412 - socialaccount: Added ``get_social_accounts`` template tag.
413
414 - account: Default URL to redirect to after login can now be
415 overridden via the adapter, both for login and email confirmation
416 redirects.
417
418
419 Backwards incompatible changes
420 ------------------------------
421
422 - ``requests`` is now a dependency (dropped ``httplib2``).
423
424 - Added a new column ``SocialApp.client_id``. The value of ``key`` needs
425 to be moved to the new ``client_id`` column. The ``key`` column is
426 required for Stack Exchange. Migrations are in place to handle all
427 of this automatically.