Commit graph

115 commits

Author SHA1 Message Date
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
Ludovic Stephan
f43036d6c0 Merge branch 'kerl/username_generation' into 'master'
Génération de username plus intelligente

Closes #6 and #5

See merge request klub-dev-ens/authens!8
2020-05-24 22:52:38 +02:00
Ludovic Stephan
75fd8f4581 Merge branch 'kerl/clean_username' into 'master'
Normalise les logins CAS

Closes #10

See merge request klub-dev-ens/authens!7
2020-05-24 22:50:46 +02:00
Martin Pépin
2335e9da04 More clever username generation 2020-05-17 22:17:33 +02:00
Martin Pépin
81a6c9e5c5 Clean cas logins 2020-05-17 21:49:32 +02:00
Martin Pépin
e9e8fe8d56 Meilleurs noms de variables, meilleure doc 2020-05-17 14:02:33 +02:00