Commit graph

154 commits

Author SHA1 Message Date
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
Ludovic Stephan
470bca4d1f Merge branch 'kerl/class_based_views' into 'master'
Réécrit les vues d'auth sous forme de class-based-views

Closes #3

See merge request klub-dev-ens/authens!3
2020-05-13 20:33:00 +02:00
Martin Pépin
d4e0f4bf0f rename next_page → next in templates 2020-05-13 18:47:14 +02:00
Martin Pépin
1f631ebae2 rename next_page_url → get_next_url 2020-05-13 18:46:41 +02:00
Ludovic Stephan
9880015561 Merge branch 'configurable_backend' into 'master'
Ajoute un hook pour choisir le username des users générés

See merge request klub-dev-ens/authens!2
2020-05-13 14:11:35 +02:00
Martin Pépin
62c2a742d4 rename find_available_username → get_free_username 2020-05-13 13:27:43 +02:00
Martin Pépin
4fa042079f First test! 2020-05-13 13:27:43 +02:00
Martin Pépin
8bf8700b36 Apply lstephan's suggestions 2020-05-13 13:25:47 +02:00
Martin Pépin
e3c3513a21 Use class-based views rather than functions 2020-05-12 22:35:20 +02:00
Martin Pépin
111bdfef7b Make username generation hackable 2020-05-12 20:53:08 +02:00
Martin Pepin
add3b56690 Merge branch 'Aufinal/gitignore' into 'master'
Better gitignore

See merge request klub-dev-ens/authens!1
2020-05-12 20:23:24 +02:00
Ludovic Stephan
021175503e Better gitignore 2020-05-12 17:17:14 +02:00