Skip to content
This repository has been archived by the owner on Jan 29, 2019. It is now read-only.

v2.0.0

Compare
Choose a tag to compare
@Osmose Osmose released this 21 Dec 19:45
· 8 commits to master since this release

Welcome to django-browserid 2.0.0! django-browserid is a library that integrates BrowserID/Persona authentication into Django.

This release is (for a very small minority of projects) backwards-incompatible with 1.0.2.

Python and Django versions

django-browserid is tested on Python 2.7 up to 2.5, and on Django 1.7, to 1.9. It may work on other version combinations, but we haven't gotten around to testing them yet, so you should expect possible errors.

What's new in django-browserid 2.0.0

Backwards-incompatible data-next change.

2.0.0 introduces a small, but backwards-incompatible change that shouldn't affect most users. You are only affected if you:

  1. Use the browserid_login or browserid_logout template helpers to generate your login/logout buttons, and
  2. Use custom JavaScript that relies on the data-next attribute on the buttons generate by these helpers.

If both of the above apply to you, then you may have to update your custom JavaScript, as the helpers now default to a blank data-next value instead of defaulting to the LOGIN_REDIRECT_URL/LOGOUT_REDIRECT_URL settings.

The default JavaScript does not rely on this, and it's not expected that any project relies on this either. Most projects should be able to upgrade to the new version with no changes.

Credits

Special thanks for this release goes to @alanbriolat for noticing and fixing #296, the source of the backwards-incompatible fix.