Permalink
Switch branches/tags
Commits on May 14, 2013
  1. Merge pull request #165 from Osmose/fix-backend

    peterbe committed May 14, 2013
    Ensure backend attribute exists on user objects.
  2. Ensure backend attribute exists on user objects.

    Osmose committed May 14, 2013
    A user's email is only included in the browserid_info div if it was
    authenticated by the BrowserIDBackend, which is signified by the
    backend attribute on the user object. However, if a user is retrieved
    from the session, the backend attribute isn't set by default.
    
    In that case, the user object is retrieved by the get_user method
    on the backend that first logged the user in. This commit updates that
    method so that it sets the backend attribute on the user object, 
    ensuring that it will always have that attribute and can be correctly
    identified as being authed by the BrowserIDBackend.
    
    Oh, and I also added Python 3.3 to the allowed failures list in Travis
    until we figure out why lxml doesn't want to install on it.
Commits on May 13, 2013
Commits on May 10, 2013
  1. Fix #141: Remove email from browserid_info if user authed normally.

    Osmose committed May 5, 2013
    If the user authenticates using a different method than BrowserID, the
    browserid_info function should not include the user's email for use
    by the JavaScript.
Commits on May 8, 2013
Commits on May 7, 2013
  1. Include css in package data

    richardmansfield committed May 7, 2013
    Makes the persona-buttons.css file available when installed using pip.
Commits on May 5, 2013
  1. Fix up the docs a bit.

    Osmose committed May 5, 2013
  2. Fix #116: Add CSS for pretty Persona buttons.

    Kalail authored and Osmose committed Mar 30, 2013
Commits on Apr 23, 2013
  1. Merge pull request #156 from peterbe/workaround-for-python-bug-issue1…

    willkg committed Apr 23, 2013
    …5881
    
    workaround for python bug issue15881
  2. issue 53 - Allow SITE_URL to be a string or a list

    Kalail authored and peterbe committed Apr 15, 2013
Commits on Apr 18, 2013
  1. Merge pull request #154 from Osmose/lazy-request-args

    peterbe committed Apr 18, 2013
    Add support for lazily-evaluated BROWSERID_REQUEST_ARGS.
Commits on Apr 16, 2013
  1. Add support for lazily-evaluated BROWSERID_REQUEST_ARGS.

    Osmose committed Apr 16, 2013
    Updates our use of BROWSERID_REQUEST_ARGS to support Django Promises.
    This is primarily useful for translating strings in the request args
    using lazy translation, as well as reversing URLs using reverse_lazy.
Commits on Apr 11, 2013
  1. Add a small JS API.

    Osmose committed Apr 11, 2013
    Adds a global variable to browserid.js (django_browserid) that has 3
    useful methods: login and logout for manually triggering BrowserID,
    and isUserAuthenticated for checking if the current user is 
    authenticated.
Commits on Apr 5, 2013
  1. Fix #146: Support running tests with python setup.py test.

    graingert authored and Osmose committed Apr 5, 2013
    Removes dependency on Fabric.
Commits on Apr 1, 2013
  1. Fix typo

    willkg committed Apr 1, 2013
Commits on Mar 8, 2013
  1. Issue 138. Fix login failure auto-login

    willkg committed Mar 8, 2013
    If you have BROWSERID_CREATE_USER = False, then try to log in with a valid
    account on Persona, but not on the site, then you end up in this endless
    loop of going to a page on the site and being redirected to the login
    failure page immediately.
    
    This fixes that.
Commits on Mar 5, 2013
  1. 0.8 release, w00t!

    Osmose committed Mar 5, 2013
Commits on Mar 4, 2013
  1. Fix #97: Raise BrowserIDException on service errors and handle in view.

    Osmose committed Mar 4, 2013
    - Adds BrowserIDException and updates verify to raise it when there is 
      an issue connecting to the remote verification service.
    - Update the Verify view to catch the raised BrowserIDException and 
      redirect to the login failure page when it is raised.
  2. Merge pull request #134 from Osmose/redirect-security

    peterbe committed Mar 4, 2013
    Fix #125: Add security checks to Verify view.
  3. Drop support for Django 1.3.

    Osmose committed Feb 26, 2013
  4. Make browserid_info a function to fix the form CSRF.

    Osmose committed Feb 26, 2013
    Django's CSRF protection is difficult to use outside of a view. When
    browserid_info was being generated in the context processor, it couldn't
    get the {% csrf_token %} tag to output a CSRF token.
    
    To fix this, we change browserid_info to a function that executes when
    the template is rendered. By that point, the Django CSRF plumbing has
    sorted itself out and {% csrf_token %} now outputs a token correctly.
    This also has the side benefit of making the API a bit more consistent.
  5. Update docs and changelog.

    Osmose committed Feb 26, 2013
  6. Replace browserid_button with browserid_login and browserid_logout.

    Osmose committed Feb 26, 2013
    - Move template helpers to helpers.py and replace browserid_button
      with browserid_login and browserid_logout instead.
    - Add login form to browserid_info to avoid issues with having a form 
      tag inside an inline element.
    - Simplify Verify view redirect to look directly for the `next` 
      parameter.
    - Update browserid.js to work with the new single-login form.
Commits on Feb 27, 2013
  1. added jquery to the complete example

    tuxcanfly authored and willkg committed Feb 24, 2013
  2. Add Javed to AUTHORS

    willkg committed Feb 27, 2013
  3. highlight django code blocks

    tuxcanfly authored and willkg committed Feb 24, 2013