Commit graph

120 commits

Author SHA1 Message Date
Ludovic Stephan
bf99e93cf1 Merge branch 'kerl/ldap' into 'master'
Helper pour lier un compte Django existant à un compte CAS

See merge request klub-dev-ens/authens!13
2020-06-22 10:10:54 +02:00
Martin Pépin
73cf73157c
More relevant tests for register_cas_account 2020-06-20 17:45:39 +02:00
Martin Pépin
a71688bbd5
Update erroneous docstring 2020-06-20 17:29:13 +02:00
Martin Pépin
351b084419
Handle non-existing users in register_cas_account 2020-06-20 17:25:57 +02:00
Martin Pépin
1fc2a04040
More informative error message when LDAP messes up 2020-06-20 17:22:50 +02:00
Martin Pépin
744f12dccf
More idiomatic default settings 2020-06-20 17:19:42 +02:00
Martin Pepin
ab49a6479f Merge branch 'Aufinal/old_cas_view' into 'master'
Vues pour l'authentification vieilleux

See merge request klub-dev-ens/authens!12
2020-06-20 17:06:31 +02:00
Ludovic Stephan
00458553ad Promotion cohérente avec les tests 2020-06-19 16:30:53 +02:00
Martin Pépin
1cdc4a12d6
Tests for authens.shortcuts.register_cas_account 2020-06-15 19:06:24 +02:00
Martin Pépin
cf4d80da13
+ helper to create CASAccounts for existing users 2020-06-15 19:06:04 +02:00
Ludovic Stephan
75e7acb233 Flake8 râle 2020-06-13 21:03:52 +02:00
Ludovic Stephan
189159f9e5 Tests ! 2020-06-13 20:42:04 +02:00
Ludovic Stephan
6cd64dd441 Fix formatter config 2020-06-13 20:41:45 +02:00
Ludovic Stephan
1d1a2bee39 Test doc 2020-06-13 19:48:27 +02:00
Ludovic Stephan
b1e079da74 Update example site 2020-06-13 19:47:39 +02:00
Ludovic Stephan
6bf4b54ea5 Frontend stuff 2020-06-13 19:47:03 +02:00
Ludovic Stephan
b656bc3b76 Authentication form and view 2020-06-13 19:46:31 +02:00
Ludovic Stephan
1c9ecb5eb9 Fix backend 2020-06-13 19:45:22 +02:00
Ludovic Stephan
99e84f04ad Fix model __str__ method 2020-06-13 18:50:00 +02:00
Ludovic Stephan
8e9770a26b Styling config 2020-06-13 18:27:23 +02:00
Ludovic Stephan
6e51e555f6 Merge branch 'kerl/templates' into 'master'
Première tentative de templates

See merge request klub-dev-ens/authens!9
2020-06-13 18:20:28 +02:00
Martin Pepin
e01ddbbcf5 Merge branch 'Aufinal/old_cas' into 'master'
Backend pour authentification des vieilleux

See merge request klub-dev-ens/authens!11
2020-06-13 18:18:59 +02:00
Martin Pépin
5047ee14de
Black 2020-06-13 18:17:51 +02:00
Martin Pépin
6042a50214
Fancier submit button 2020-06-13 18:12:12 +02:00
Ludovic Stephan
0d4f848fe5 Better doc 2020-06-13 18:04:12 +02:00
Martin Pépin
bc1632dd1b
Errors deserve CSS too! 2020-06-13 17:14:51 +02:00
Ludovic Stephan
bb3aac63b9 typo 2020-06-12 20:40:20 +02:00
Ludovic Stephan
35eb6f9833 Tests for backend 2020-06-12 20:39:09 +02:00
Ludovic Stephan
6a84639afe Auth backend 2020-06-12 19:37:20 +02:00
Ludovic Stephan
27184df690 OldCASAccount model and migration 2020-06-12 19:37:06 +02:00
Martin Pépin
fa82ee251e
Put the site's name in every h2 2020-06-12 18:13:45 +02:00
Martin Pépin
b0a0c4884a
A little bit styling for form inputs 2020-06-12 18:06:30 +02:00
Martin Pépin
a6f4bfcb16
Better html title 2020-06-12 17:55:15 +02:00
Martin Pépin
73e79d6509
Apply some of Aufinal's design remarks 2020-06-12 17:53:10 +02:00
Martin Pépin
7d56fe15a9
Templates: first draft 2020-06-12 17:53:07 +02:00
Ludovic Stephan
4e9e2f62e8 Merge branch 'kerl/login_tests' into 'master'
Quelques tests pour les vues de login

See merge request klub-dev-ens/authens!6
2020-06-12 16:15:27 +02:00
Ludovic Stephan
15cba2ec70 Merge branch 'kerl/email' into 'master'
Use the CAS email address at user creation

See merge request klub-dev-ens/authens!10
2020-06-12 12:29:43 +02:00
Martin Pépin
ff000463b1
Use the CAS email address at user creation 2020-06-12 12:21:18 +02:00
Martin Pépin
d2d7622a34
Tests: instantiate FakeCASClient with no argument 2020-06-12 12:17:28 +02:00
Martin Pépin
9f2e2a235a
Test the login switch view 2020-06-12 12:16:58 +02:00
Martin Pépin
68e43f488a
Test the CAS login view 2020-06-12 12:16:58 +02:00
Ludovic Stephan
6fdde55b0f Merge branch 'kerl/cas_logout' into 'master'
Redirection vers cas.eleves.ens.fr/logout à la déconnexion.

Closes #8

See merge request klub-dev-ens/authens!5
2020-06-11 00:50:14 +02:00
Martin Pépin
352fedb8b2
Logout next url can be local or absolute 2020-06-10 23:23:33 +02:00
Martin Pépin
8e95a01647
Redirect after a CAS logout 2020-06-10 22:34:51 +02:00
Ludovic Stephan
00515b8811 Merge branch 'kerl/backend_tests' into 'master'
Teste le comportement décrit dans le README

Closes #4

See merge request klub-dev-ens/authens!4
2020-06-09 17:48:47 +02:00
Martin Pépin
6a75f78541
Store the connexion method in a session variable 2020-05-29 16:29:16 +02:00
Martin Pépin
ead851893a
Test the logout view 2020-05-29 16:28:31 +02:00
Martin Pépin
09ad5b6657
redirect CAS-users to CAS_URL/logout at logout 2020-05-29 16:28:30 +02:00
Martin Pépin
bbd6a5bb82
Black 2020-05-27 22:38:05 +02:00
Martin Pépin
b8e165aca5
Test the behaviour described in the README 2020-05-27 22:37:25 +02:00