django-cas-provider.git
12 years agoMoved `merge` argument into `**kwargs`.
deyk [Wed, 11 Apr 2012 21:51:54 +0000 (14:51 -0700)]
Moved `merge` argument into `**kwargs`.

12 years agoRemoved `views.socialauth_login`, as `views.login` now has feature parity.
deyk [Wed, 11 Apr 2012 20:33:54 +0000 (13:33 -0700)]
Removed `views.socialauth_login`, as `views.login` now has feature parity.

12 years agoNormal login now pull the service off the session, if it doesn't exist already.
deyk [Wed, 11 Apr 2012 20:32:56 +0000 (13:32 -0700)]
Normal login now pull the service off the session, if it doesn't exist already.

12 years agoWhoops.
deyk [Wed, 11 Apr 2012 20:12:49 +0000 (13:12 -0700)]
Whoops.

12 years agoSimplified getting the service off the session for social login.
deyk [Wed, 11 Apr 2012 18:22:38 +0000 (11:22 -0700)]
Simplified getting the service off the session for social login.

12 years agoFixed: Service URL was getting built in two different ways, depending on login method.
deyk [Wed, 11 Apr 2012 18:13:19 +0000 (11:13 -0700)]
Fixed: Service URL was getting built in two different ways, depending on login method.

Also:

 - Removing 'service' from session dict upon successful login.
 - Switched from `has_key` to `in`.

12 years agoRemoved duplicated service-related code branches in `views.login`.
deyk [Wed, 11 Apr 2012 17:55:56 +0000 (10:55 -0700)]
Removed duplicated service-related code branches in `views.login`.

12 years agoCleaned up long lines, unused imports.
deyk [Wed, 11 Apr 2012 17:55:26 +0000 (10:55 -0700)]
Cleaned up long lines, unused imports.

12 years agoMerge branch 'master' of git://github.com/eykd/django-cas-provider
deyk [Tue, 7 Feb 2012 19:40:39 +0000 (11:40 -0800)]
Merge branch 'master' of git://github.com/eykd/django-cas-provider

12 years agoFixed faulty redirect if user is already logged in. Added some better logging.
deyk [Tue, 7 Feb 2012 19:40:31 +0000 (11:40 -0800)]
Fixed faulty redirect if user is already logged in. Added some better logging.

12 years agoAdding autofocus to Email field
dwickwire [Mon, 6 Feb 2012 14:54:52 +0000 (08:54 -0600)]
Adding autofocus to Email field

12 years agoClarified logging on validation
deyk [Fri, 3 Feb 2012 23:21:44 +0000 (15:21 -0800)]
Clarified logging on validation

12 years agoClarified validation logging.
deyk [Fri, 3 Feb 2012 23:15:02 +0000 (15:15 -0800)]
Clarified validation logging.

12 years agoMade logging of failed validation more explicit.
deyk [Fri, 3 Feb 2012 23:00:52 +0000 (15:00 -0800)]
Made logging of failed validation more explicit.

12 years agoGetting the service off the POST form, like we should have been.
deyk [Fri, 3 Feb 2012 18:24:38 +0000 (10:24 -0800)]
Getting the service off the POST form, like we should have been.

12 years agoAdding class to remember me
dwickwire [Sat, 28 Jan 2012 20:57:20 +0000 (14:57 -0600)]
Adding class to remember me

12 years agoRemoved accounts dependency, using a signal instead.
deyk [Tue, 24 Jan 2012 23:20:10 +0000 (15:20 -0800)]
Removed accounts dependency, using a signal instead.

12 years agoChanged the CAS Protocol! A 'yes' or 'no' first line followed with the user is still...
dwickwire [Fri, 20 Jan 2012 19:19:31 +0000 (13:19 -0600)]
Changed the CAS Protocol!  A 'yes' or 'no' first line followed with the user is still consistent.

Now, the response has historical identifiers trailing the primary user, each on a new line.

Clients should check for each identifier...
-- if one is matched, use that username
-- if two are matched, merge accounts on client end
-- if none are matched, create a new user with primary username

Old protocol response:
yes
foobar123

New protocol response:
yes
foobar123
barbaz345
barfoo789

12 years agoChanged the remember me label
dwickwire [Thu, 19 Jan 2012 22:14:00 +0000 (16:14 -0600)]
Changed the remember me label

12 years agoRemoved some broken logging statements.
deyk [Thu, 19 Jan 2012 19:55:13 +0000 (11:55 -0800)]
Removed some broken logging statements.

12 years agoFixeed urls.py to match latest usage. Sprinkled logging statements liberally.
deyk [Thu, 19 Jan 2012 19:33:16 +0000 (11:33 -0800)]
Fixeed urls.py to match latest usage. Sprinkled logging statements liberally.

12 years agoRemoved usage of LoginTicket, as we get this in a much more robust form from Django...
deyk [Wed, 18 Jan 2012 22:04:38 +0000 (14:04 -0800)]
Removed usage of LoginTicket, as we get this in a much more robust form from Django's CSRF middleware.

12 years agoAdded more specific exception handling. This clears up the LoginTicket issue we were...
deyk [Wed, 18 Jan 2012 21:52:09 +0000 (13:52 -0800)]
Added more specific exception handling. This clears up the LoginTicket issue we were having upon successful login.

12 years agoSpecifying merge template for merge url.
deyk [Wed, 18 Jan 2012 21:42:41 +0000 (13:42 -0800)]
Specifying merge template for merge url.

12 years agoCorrected behavior of merge/login forms on GET requests.
deyk [Wed, 18 Jan 2012 21:40:29 +0000 (13:40 -0800)]
Corrected behavior of merge/login forms on GET requests.

12 years agoFixing validation always being thrown on first visit.
dwickwire [Wed, 18 Jan 2012 21:18:02 +0000 (15:18 -0600)]
Fixing validation always being thrown on first visit.

-- still need to hide errors for hidden fields

12 years agoAdded support for handling user-merging workflows at authentication time.
deyk [Wed, 18 Jan 2012 19:44:49 +0000 (11:44 -0800)]
Added support for handling user-merging workflows at authentication time.

 - views.login now has a merge mode flag, and a corresponding /cas/merge/ url.
 - forms.LoginForm now does its own validation, simplifying views.login
 - views.social_auth_login hasn't been adapted yet.

12 years agoAdding basic merge template
dwickwire [Wed, 18 Jan 2012 17:57:46 +0000 (11:57 -0600)]
Adding basic merge template

13 years agoSaving the service protectively. Also using user from the request for socialauth...
dwickwire [Wed, 23 Nov 2011 22:01:48 +0000 (16:01 -0600)]
Saving the service protectively.  Also using user from the request for socialauth logins.

13 years agoAdded social authentication hook to generate valid tickets for social auth logins...
dwickwire [Wed, 16 Nov 2011 14:56:58 +0000 (08:56 -0600)]
Added social authentication hook to generate valid tickets for social auth logins.  Fixed redirection url to 'account' instead of 'accounts'.  Reverted to using usernames instead of emails.

13 years agoAdded 'remember me' functionality to view
dwickwire [Fri, 28 Oct 2011 15:57:34 +0000 (10:57 -0500)]
Added 'remember me' functionality to view

13 years agoTweaked to use emails instead of usernames.
deyk [Mon, 24 Oct 2011 18:39:47 +0000 (11:39 -0700)]
Tweaked to use emails instead of usernames.

13 years agoChanged `<CR><LF>` line endings to `<LF>` in `views.login`. Fixes #2
Marek Stępniowski [Sat, 15 Oct 2011 10:38:28 +0000 (12:38 +0200)]
Changed `<CR><LF>` line endings to `<LF>` in `views.login`. Fixes #2

13 years agoRemoved unneeded imports.
Marek Stępniowski [Sat, 15 Oct 2011 10:22:53 +0000 (12:22 +0200)]
Removed unneeded imports.

13 years agoFixed an issue raised by realyze on github where CRLF was actually sent as LFCR.
Chris Williams [Wed, 2 Feb 2011 18:16:29 +0000 (13:16 -0500)]
Fixed an issue raised by realyze on github where CRLF was actually sent as LFCR.

15 years agoUse string.ascii_letters instead of string.letters in utils._generate_string to preve...
zuber [Fri, 2 Oct 2009 21:41:40 +0000 (23:41 +0200)]
Use string.ascii_letters instead of string.letters in utils._generate_string to prevent the server from blowing up when locale is other than C.

15 years agoFixed some formatting
Chris Williams [Wed, 18 Mar 2009 05:09:33 +0000 (01:09 -0400)]
Fixed some formatting

15 years agoAdditional documentation and cleaned up imports in views.py
Chris Williams [Wed, 18 Mar 2009 05:07:21 +0000 (01:07 -0400)]
Additional documentation and cleaned up imports in views.py

15 years agoAdded some documentation and a license
Chris Williams [Wed, 18 Mar 2009 00:10:12 +0000 (20:10 -0400)]
Added some documentation and a license

15 years agoRemoved some old SVN junk
Chris Williams [Tue, 17 Mar 2009 23:06:53 +0000 (19:06 -0400)]
Removed some old SVN junk

15 years agoFirst commit
Chris Williams [Tue, 17 Mar 2009 23:05:57 +0000 (19:05 -0400)]
First commit