Commit graph

169 commits

Author SHA1 Message Date
3d0b9e578d feat: Move code under src, add nix tooling and switch to pyproject.toml 2024-07-04 22:46:55 +02:00
Martin Pepin
58747e57b3 Merge branch 'dorian/improve-pwd-reset' into 'master'
Dorian/improve pwd reset

See merge request klub-dev-ens/authens!36
2022-12-01 16:31:20 +01:00
Dorian Lesbre
83d63845ae
Fix typo 2022-11-02 10:26:52 +01:00
Dorian Lesbre
018fd5249f
Clearer password reset error message 2022-11-02 10:26:26 +01:00
ba1fa8c82c We need to use a string 2022-08-27 17:53:32 +02:00
0b0926ba76 Specify default auto field to avoid creating migrations by other apps using authens 2022-08-27 17:44:12 +02:00
Tom Hubrecht
e1eb6cc577 Version 0.1b5 2021-10-10 19:19:56 +02:00
Tom Hubrecht
a5682f0674 Merge branch 'kerl/bump-ci-versions' into 'master'
Bump python and Django versions in CI

See merge request klub-dev-ens/authens!35
2021-10-10 19:16:11 +02:00
Martin Pépin
6ea557e76a
Drop python3.5 support 2021-10-10 17:37:23 +02:00
Martin Pépin
cec9edba12
Fix Django version in the django22 tox env 2021-10-08 00:03:24 +02:00
Tom Hubrecht
22b4d440c3 Merge branch 'kerl/issue20' into 'master'
Handle LOGOUT_URL=None in the logout view

Closes #20

See merge request klub-dev-ens/authens!34
2021-10-03 17:50:10 +02:00
Martin Pépin
7809a3c639
Apply Tomate's suggestion: not x → x is not None 2021-10-03 17:34:25 +02:00
Martin Pépin
7b7a51ec5f
Bump python and Django versions in CI 2021-10-02 17:27:50 +02:00
Martin Pépin
acea5a6f4e
Handle LOGOUT_URL=None in the logout view
The view used to crash when `LOGOUT_URL` was not set and the user was
connect via CAS.

Cause: we assumed the result of `LogoutView.get_next_page()` to be a
  string and tried to prepend the domain name of the site to it.

Fix: redirect to the CAS' logout view without any `next_page` parameter.
2021-10-02 17:02:30 +02:00
Tom Hubrecht
f24395ea41 Version 0.1b4 2021-05-31 15:40:12 +00:00
Martin Pepin
577ecd677c Merge branch 'thubrecht/apromides' into 'master'
Gère les membres `staffs`

See merge request klub-dev-ens/authens!32
2021-05-25 09:19:21 +00:00
cb3a1b232f On définit STAFF_ENTRANCE_YEAR dans le modèle CASAccount 2021-05-25 11:10:34 +02:00
e6bc3d25dc Last isort fix 2021-05-23 13:22:30 +02:00
ca5659b0a2 Update README 2021-05-23 13:20:01 +02:00
26e4b7c1af Fix isort 2021-05-23 13:18:46 +02:00
f362bb1a60 Rajoute la possibilité d'autoriser l'accès aux membres de staffs, avec une promotion valant 0 2021-05-23 13:11:17 +02:00
8492d95040 Update isort config 2021-05-22 22:27:38 +02:00
Martin Pepin
a0d56eb8b7 Merge branch 'thubrecht/readme' into 'master'
On rajoute des infos sur l'override de templates et la désactivation de la connexion par mdp

Closes #11

See merge request klub-dev-ens/authens!31
2021-04-13 22:31:54 +00:00
2d57645474 On rajoute des infos sur l'override de templates et la désactivation de la connexion par mdp 2021-04-14 00:21:33 +02:00
Martin Pépin
47f99f487e
Version 0.1b3 2021-04-07 00:10:40 +02:00
Martin Pepin
0898640785 Merge branch 'thubrecht/disable-password' into 'master'
Permet de désactiver la connexion par mot de passe

See merge request klub-dev-ens/authens!30
2021-04-06 17:57:58 +00:00
f4ef5b909b Permet de désactiver la connexion par mot de passe 2021-02-23 23:32:44 +01:00
Martin Pépin
bb242e4282
Version 0.1 beta 2 2021-02-23 22:05:02 +01:00
Martin Pepin
c2bacdd86d Merge branch 'thubrecht/redirect' into 'master'
get_next_url renvoie une str

Closes #15

See merge request klub-dev-ens/authens!29
2021-01-30 23:43:48 +01:00
5315b0f53f get_next_url renvoie une str 2021-01-30 21:52:31 +01:00
Martin Pepin
73da51952f Merge branch 'thubrecht/translate' into 'master'
Traduction

Closes #12

See merge request klub-dev-ens/authens!28
2021-01-30 20:54:36 +01:00
66eae35d99 Petit oubli 2021-01-30 20:48:32 +01:00
66b6087276 Tweaks and branches 2021-01-30 20:42:45 +01:00
e9f26b367b Traduction 2021-01-28 20:52:15 +01:00
Martin Pepin
82b2662636 Merge branch 'thubrecht/connexion_vieux' into 'master'
Thubrecht/connexion vieux

See merge request klub-dev-ens/authens!26
2021-01-28 20:41:15 +01:00
6804681dc7 Fix typos et couleur 2021-01-28 20:29:37 +01:00
4dbd0a1a80 On rajoute un test pour l'auth OldCAS avec un compte CAS non migré 2021-01-23 11:07:21 +01:00
d9490ba34a Rajoute un lien sur le login_switch pour reset le mdp avec une explication pour les gens utilisant le CAS 2021-01-22 19:49:21 +01:00
830309225a Regarde d'abord dans CASAccount puis dans OldCASAccount pour la connexion vieilleux 2021-01-22 19:49:14 +01:00
Martin Pépin
4d0d7d32e8
Version 0.1 beta 1 2021-01-21 23:26:18 +01:00
Ludovic Stephan
3cd466fba0 Merge branch 'Evarin/signaux' into 'master'
Signaux de création

See merge request klub-dev-ens/authens!24
2021-01-21 23:01:11 +01:00
Martin Pépin
70c9f8bece
Document authens.signals.post_cas_connect 2021-01-21 22:50:40 +01:00
Ludovic Stephan
f9b78f6d46 Merge branch 'thubrecht/custom-user' into 'master'
On déplace la création d'utilisateurs dans une méthode à part pour pouvoir override

See merge request klub-dev-ens/authens!25
2021-01-21 22:50:08 +01:00
f975cc2811 On déplace la création d'utilisateurs dans une méthode à part pour pouvoir override 2021-01-21 22:43:08 +01:00
Ludovic Stephan
ef08eab248 Merge branch 'Evarin/custom_usernames' into 'master'
Donne les attributes à get_free_username

See merge request klub-dev-ens/authens!23
2021-01-21 22:23:48 +01:00
Martin Pépin
b8acee8d30
Fix get_free_username tests 2021-01-21 22:11:41 +01:00
Ludovic Stephan
d491c47cce Merge branch 'kerl/more_responsive_form' into 'master'
Le formulaire login/mot de passe rend mieux sur petit écran

See merge request klub-dev-ens/authens!21
2021-01-21 21:57:50 +01:00
Robin Champenois
f06caf7b28 isort 2021-01-17 23:53:56 +01:00
Robin Champenois
09b942f1c0 Linters 2021-01-17 23:51:26 +01:00
Robin Champenois
95931792a5 Plus simple et utile : un signal post-connexion global 2021-01-17 23:39:19 +01:00