Commit graph

4 commits

Author SHA1 Message Date
Aurélien Delobelle
a11a835ef2 Fix CASTestCase.client_cas_login() 2017-12-29 22:21:44 +01:00
Aurélien Delobelle
bb8a3b16bf Connect a CAS Account for an authenticated works...
...thanks to using SocialLogin.stash/unstash_state.

Also:
- Some tests are updated to get the stash_state. Requests are denied if
client session doesn't go through stash_state (called in LoginCASView).
- Fix an assert statement in a test.
2017-09-16 01:58:09 +02:00
Aurélien Delobelle
049cf22b42 Renew on already authenticated + Misc tests
Renew paramater:
- By default, CAS client will use renew parameter if user already
authenticates via a CAS server. If always False, he can't
reauthenticate on a CAS server due to the single sign-on CAS feature
(except if he logouts of CAS on his own).

Tests:
- patch_cas_reponse now returns a correct CAS client taking into
account the version attribute of the CAS adapter.
- Some moves happens between testcases et al.
- Delete old and now unused fake CAS client classes.
2017-07-28 15:31:37 +02:00
Aurélien Delobelle
9860eb683f Update tests
- Delete patch_cas_client on CASTestCase. It's replaced with
patch_cas_response method.
- Move CAS*TestCase to allauth_cas.test.testcases.
2017-07-26 18:32:35 +02:00