django-cas-provider.git
21 months agoSupport Django 4.1, drop 1.11. 23.3
Radek Czajka [Fri, 3 Mar 2023 23:53:37 +0000 (00:53 +0100)]
Support Django 4.1, drop 1.11.

2 years agoSupport for Python 3.10 and Django 4.0, drop Python 3.5, Python 3.6, Django 1.9,... 22.4
Radek Czajka [Thu, 21 Apr 2022 12:11:34 +0000 (14:11 +0200)]
Support for Python 3.10 and Django 4.0, drop Python 3.5, Python 3.6, Django 1.9, Django 1.10.

3 years agoSupport for Django 3.2
Radek Czajka [Fri, 20 Aug 2021 10:17:33 +0000 (12:17 +0200)]
Support for Django 3.2

3 years agoSupport for Django up to 3.1. Dropped support for Django<1.10 and Python<3.5.
Radek Czajka [Tue, 30 Mar 2021 10:11:03 +0000 (12:11 +0200)]
Support for Django up to 3.1. Dropped support for Django<1.10 and Python<3.5.

5 years agoExtend the service URL field.
Radek Czajka [Tue, 12 Mar 2019 13:34:19 +0000 (14:34 +0100)]
Extend the service URL field.

5 years agoMerge branch 'master' of https://github.com/ryanbagwell/django-cas-provider into...
Radek Czajka [Tue, 12 Mar 2019 13:05:54 +0000 (14:05 +0100)]
Merge branch 'master' of https://github.com/ryanbagwell/django-cas-provider into ryanbagwell-master

5 years agoCompatibility up to Django 2.1, dropped < 1.8. Removed unused code, fixed tests.
Radek Czajka [Wed, 9 Jan 2019 13:02:23 +0000 (14:02 +0100)]
Compatibility up to Django 2.1, dropped < 1.8. Removed unused code, fixed tests.

5 years agoJust upgrade versions.
Radek Czajka [Wed, 9 Jan 2019 11:17:03 +0000 (12:17 +0100)]
Just upgrade versions.

9 years agoremoving default for foreign key field because it throws an error with mysql.
Ryan Bagwell [Tue, 6 Oct 2015 14:38:21 +0000 (10:38 -0400)]
removing default for foreign key field because it throws an error with mysql.

9 years agoUpdated setup.py
Radek Czajka [Tue, 17 Mar 2015 11:57:20 +0000 (12:57 +0100)]
Updated setup.py

9 years agoDjango 1.8(b2) support.
Radek Czajka [Tue, 17 Mar 2015 11:55:46 +0000 (12:55 +0100)]
Django 1.8(b2) support.

10 years agoAdd South migrations back, use in tests in Django<1.7.
Radek Czajka [Sun, 21 Sep 2014 23:05:26 +0000 (01:05 +0200)]
Add South migrations back, use in tests in Django<1.7.

10 years agoMerge branch 'elep'
Radek Czajka [Sun, 21 Sep 2014 20:40:55 +0000 (22:40 +0200)]
Merge branch 'elep'

10 years agoCompatibility fixes.
Radek Czajka [Sun, 21 Sep 2014 20:34:09 +0000 (22:34 +0200)]
Compatibility fixes.

* Use unicode_literals thoughout the package.
* Add indexes to '{}'.format(), unindexed version unsupported in Py2.6.
* Remove remnants of Python 2.5 support (Django 1.5 is required anyway).
* Stop relying on `hasattr` on OneToOneField, won't work on Python 3.2 + Django 1.6
  (see https://code.djangoproject.com/ticket/21563).

10 years agoTest: Remove unnecessary and unsupported in Py2.6 `namespaces` arg for ET.find
Radek Czajka [Sun, 21 Sep 2014 19:20:10 +0000 (21:20 +0200)]
Test: Remove unnecessary and unsupported in Py2.6 `namespaces` arg for ET.find

10 years agoMove unit tests out of the app.
Radek Czajka [Sun, 21 Sep 2014 11:39:48 +0000 (13:39 +0200)]
Move unit tests out of the app.
Add tox configuration (tox 1.8 needed),
fix requirements and package discovery in setup.py.

10 years agoCan't have ForeignKey from PGT to ST, if ST is deleted immediately.
Radek Czajka [Sat, 20 Sep 2014 22:11:53 +0000 (00:11 +0200)]
Can't have ForeignKey from PGT to ST, if ST is deleted immediately.

10 years agoAdd Django migrations.
Radek Czajka [Sat, 20 Sep 2014 22:11:01 +0000 (00:11 +0200)]
Add Django migrations.

10 years agoMerge remote-tracking branch 'gstrat/elep' into elep
Radek Czajka [Sat, 20 Sep 2014 20:49:12 +0000 (22:49 +0200)]
Merge remote-tracking branch 'gstrat/elep' into elep

Conflicts:
cas_provider_examples/simple/urls.py

10 years agoAdd tests for double ticket validation.
Radek Czajka [Sat, 20 Sep 2014 20:40:21 +0000 (22:40 +0200)]
Add tests for double ticket validation.

10 years agoCustom URL opener instead of monkey-patching for tests.
Radek Czajka [Sat, 20 Sep 2014 11:50:51 +0000 (13:50 +0200)]
Custom URL opener instead of monkey-patching for tests.

10 years agoMissing manage.py for example project.
Radek Czajka [Fri, 19 Sep 2014 23:47:26 +0000 (01:47 +0200)]
Missing manage.py for example project.

10 years agoPython 3.4 compatibility & fixed some of the tests.
Radek Czajka [Fri, 19 Sep 2014 23:42:43 +0000 (01:42 +0200)]
Python 3.4 compatibility & fixed some of the tests.

10 years agoDjango 1.7 compatibility fix.
Radek Czajka [Fri, 19 Sep 2014 21:44:38 +0000 (23:44 +0200)]
Django 1.7 compatibility fix.

10 years agodjango 1.6 comp fix
Radek Czajka [Thu, 27 Mar 2014 14:13:35 +0000 (15:13 +0100)]
django 1.6 comp fix

11 years agotranslating error messages
gstrat [Sun, 1 Dec 2013 12:02:10 +0000 (14:02 +0200)]
translating error messages

11 years agodelete .svn
ppetrid [Thu, 6 Jun 2013 22:44:14 +0000 (01:44 +0300)]
delete .svn

11 years agodjango.conf.urls.defaults is deprecated
ppetrid [Mon, 27 May 2013 10:22:19 +0000 (13:22 +0300)]
django.conf.urls.defaults is deprecated

11 years agodjango.conf.urls.defaults is deprecated
ppetrid [Mon, 27 May 2013 10:08:26 +0000 (13:08 +0300)]
django.conf.urls.defaults is deprecated

11 years agoi18n, l10n-pl, minor gitignore fix
Radek Czajka [Mon, 15 Apr 2013 09:03:56 +0000 (11:03 +0200)]
i18n, l10n-pl, minor gitignore fix

11 years agoremoved wrong migrations
ppetrid [Sat, 2 Feb 2013 21:20:03 +0000 (23:20 +0200)]
removed wrong migrations

11 years agoremove unused import
ppetrid [Tue, 29 Jan 2013 12:33:21 +0000 (14:33 +0200)]
remove unused import

11 years agofix login form
ppetrid [Mon, 28 Jan 2013 15:58:58 +0000 (17:58 +0200)]
fix login form

11 years agoignore files
ppetrid [Mon, 28 Jan 2013 01:32:14 +0000 (03:32 +0200)]
ignore files

11 years agoupdated gitignore
ppetrid [Mon, 28 Jan 2013 01:31:09 +0000 (03:31 +0200)]
updated gitignore

11 years agotemplate updates
gstrat [Sun, 20 Jan 2013 18:08:39 +0000 (20:08 +0200)]
template updates

11 years agodjango1.5 compatibility fixes
gstrat [Tue, 15 Jan 2013 19:41:33 +0000 (21:41 +0200)]
django1.5 compatibility fixes

11 years agoinitial commit
gstrat [Tue, 15 Jan 2013 17:48:24 +0000 (19:48 +0200)]
initial commit

12 years agoAdding placeholder text for login form
dwickwire [Wed, 17 Oct 2012 21:07:18 +0000 (16:07 -0500)]
Adding placeholder text for login form

12 years agoFixed never_cache decorator to, well, never cache.
deyk [Fri, 6 Jul 2012 16:38:28 +0000 (09:38 -0700)]
Fixed never_cache decorator to, well, never cache.

12 years agoFixed naming of `identifier` attribute tags.
deyk [Tue, 19 Jun 2012 19:40:29 +0000 (12:40 -0700)]
Fixed naming of `identifier` attribute tags.

12 years agoAdded some protective decorators.
deyk [Tue, 15 May 2012 23:28:12 +0000 (16:28 -0700)]
Added some protective decorators.

12 years agoNow tracking login success.
deyk [Tue, 15 May 2012 23:27:56 +0000 (16:27 -0700)]
Now tracking login success.

12 years agoAdded new signal
deyk [Tue, 15 May 2012 22:54:37 +0000 (15:54 -0700)]
Added new signal

12 years agoFixed handling of iterables inside attribute_formatters.
deyk [Wed, 18 Apr 2012 18:14:52 +0000 (11:14 -0700)]
Fixed handling of iterables inside attribute_formatters.

12 years agoGuess we should unpack the iterables.
deyk [Wed, 18 Apr 2012 18:05:17 +0000 (11:05 -0700)]
Guess we should unpack the iterables.

12 years agoInstead of checking for list type, check for collections.Iterable type.
deyk [Wed, 18 Apr 2012 17:59:18 +0000 (10:59 -0700)]
Instead of checking for list type, check for collections.Iterable type.

12 years agoAdded identifier history support to CAS 2.0 validation. `signals.on_cas_collect_histo...
deyk [Mon, 16 Apr 2012 23:48:37 +0000 (16:48 -0700)]
Added identifier history support to CAS 2.0 validation. `signals.on_cas_collect_histories` now keys off the user, not the email.

12 years agoHey, it's probably not a good idea to clobber the response value, is it?
deyk [Mon, 16 Apr 2012 19:07:31 +0000 (12:07 -0700)]
Hey, it's probably not a good idea to clobber the response value, is it?

12 years agoOK, why isn't that working?
deyk [Mon, 16 Apr 2012 18:53:46 +0000 (11:53 -0700)]
OK, why isn't that working?

12 years agoLet's get that send() invocation right, shall we?
deyk [Mon, 16 Apr 2012 18:49:46 +0000 (11:49 -0700)]
Let's get that send() invocation right, shall we?

12 years agoChanged from custom attribute callback to signal for collecting custom attributes.
deyk [Mon, 16 Apr 2012 18:46:59 +0000 (11:46 -0700)]
Changed from custom attribute callback to signal for collecting custom attributes.

12 years agoBeter speling.
deyk [Mon, 16 Apr 2012 18:41:31 +0000 (11:41 -0700)]
Beter speling.

12 years agoFixed socialauth-login url.
deyk [Mon, 16 Apr 2012 18:06:52 +0000 (11:06 -0700)]
Fixed socialauth-login url.

12 years agoDeleting ticket after successful validation.
deyk [Mon, 16 Apr 2012 18:04:22 +0000 (11:04 -0700)]
Deleting ticket after successful validation.

12 years agoAdded missing comma.
deyk [Mon, 16 Apr 2012 18:00:01 +0000 (11:00 -0700)]
Added missing comma.

12 years agoWhoops, we really don't want to use the Authentication Form.
deyk [Fri, 13 Apr 2012 23:03:57 +0000 (16:03 -0700)]
Whoops, we really don't want to use the Authentication Form.

12 years agoMerge remote-tracking branch 'cas2/master'
deyk [Fri, 13 Apr 2012 22:25:48 +0000 (15:25 -0700)]
Merge remote-tracking branch 'cas2/master'

Conflicts:
.gitignore
cas_provider/forms.py
cas_provider/models.py
cas_provider/urls.py
cas_provider/views.py

Merged from https://github.com/castlabs/django-cas-provider

PT #27996721

12 years agoChanged the signature of the login hijack signal.
deyk [Thu, 12 Apr 2012 17:50:57 +0000 (10:50 -0700)]
Changed the signature of the login hijack signal.

12 years agoAdding the `on_cas_login` signal, which is sent just before the final redirect upon...
deyk [Wed, 11 Apr 2012 22:19:32 +0000 (15:19 -0700)]
Adding the `on_cas_login` signal, which is sent just before the final redirect upon successful login.

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 agodo some logging
Sebastian Annies [Wed, 26 Oct 2011 00:31:51 +0000 (02:31 +0200)]
do some logging

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 agorepair tests
Sebastian Annies [Mon, 17 Oct 2011 19:00:47 +0000 (21:00 +0200)]
repair tests

13 years agonew version since db schema changed
Sebastian Annies [Mon, 17 Oct 2011 17:12:25 +0000 (19:12 +0200)]
new version since db schema changed

13 years agodo not check targetService - that is totally wrong.
Sebastian Annies [Mon, 17 Oct 2011 17:11:56 +0000 (19:11 +0200)]
do not check targetService  - that is totally wrong.

13 years agoremove unused targetService field
Sebastian Annies [Mon, 17 Oct 2011 17:11:26 +0000 (19:11 +0200)]
remove unused targetService field

13 years agoadd admins for proxy related tickets
Sebastian Annies [Mon, 17 Oct 2011 17:10:58 +0000 (19:10 +0200)]
add admins for proxy related tickets

13 years agoservice == service if host, port and path are euqal. Do not mind url params
Sebastian Annies [Mon, 17 Oct 2011 13:26:16 +0000 (15:26 +0200)]
service == service if host, port and path are euqal. Do not mind url params
testing the now corrected construction of the proxyCallbackUrl

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