Commit graph

1449 commits

Author SHA1 Message Date
Alexandre Aubin
f1087662a0
Use hmac.compare_digest to compare hashes
Co-Authored-By: Timost <Timost@users.noreply.github.com>
2019-11-19 14:19:35 +01:00
Alexandre Aubin
e77e27730b
Update moulinette/authenticators/__init__.py
Co-Authored-By: Timost <Timost@users.noreply.github.com>
2019-11-01 16:47:05 +01:00
Alexandre Aubin
97aad385b4
Add comment about the _authentiate_session mechanism 2019-08-30 20:13:17 +02:00
Alexandre Aubin
050a982c93 Add note 2019-08-23 02:40:41 +02:00
Alexandre Aubin
2addea1e08 Implement basic tests for auth mechanism 2019-08-23 02:37:57 +02:00
Alexandre Aubin
82ba7e5b04 Moar things to run tests correctly on the API 2019-08-22 12:30:26 +02:00
Alexandre Aubin
6d44c46740 Be able to run test on the API 2019-08-22 03:27:31 +02:00
Alexandre Aubin
6899217fa0 Make linter gods happy 2019-08-21 16:22:16 +02:00
Alexandre Aubin
0a13e5b000 Fix is_authenticated mechanism 2019-08-21 16:12:03 +02:00
Alexandre Aubin
d7a33e5a14 Typo 2019-08-21 16:11:07 +02:00
Alexandre Aubin
7482f052f6 Get rid of gnupg, just store a hash of the id:token to reauthenticate later using session info 2019-08-20 20:31:10 +02:00
Alexandre Aubin
3822496622 Try to improve semantic : s_hash -> s_token 2019-08-20 19:53:51 +02:00
Alexandre Aubin
bcaf8b2e4a Move clean_session with the other session management method + add a check for session.hashed for additional security ? 2019-08-20 19:42:32 +02:00
Alexandre Aubin
ebc37ea014 Move init_authenticator to actionsmap.py for clarity to avoid spreading this shit over 72 files 2019-08-20 05:55:06 +02:00
Alexandre Aubin
65fe685a90 Get rid of this 'help' madness and more generally this three-tuppled containing various tuples and weird stuff ... use a simple dict everywhere instead 2019-08-20 05:43:17 +02:00
Alexandre Aubin
cad2cd8006 Get rid of the _format_conf madness. Instead, have clear functions to define if authentication is required, trigger the auth process if so 2019-08-20 05:43:09 +02:00
Alexandre Aubin
968667d9ed Try to improve the semantic of where/when the auth happens... 2019-08-20 03:32:52 +02:00
Alexandre Aubin
8d77fdb9a4 Cleaned unused stuff or overly complicated for no reason 2019-08-20 03:31:37 +02:00
Alexandre Aubin
83d9e772e7 Nowadays we don't have .errno anymore ? 2019-08-20 00:45:05 +02:00
Alexandre Aubin
3878ffdc04
Merge pull request #213 from YunoHost/detailed_error_messages_for_assert
[mod] add detail error messages on asserts
2019-08-18 14:12:56 +02:00
Alexandre Aubin
16c13012d6
Merge pull request #215 from yunohost-bot/weblate-yunohost-moulinette
Update from Weblate
2019-08-18 14:11:33 +02:00
htsr
b2ce41b101 Translated using Weblate (French)
Currently translated at 96.4% (54 of 56 strings)

Translation: YunoHost/moulinette
Translate-URL: https://translate.yunohost.org/projects/yunohost/moulinette/fr/
2019-08-16 07:56:13 +00:00
tufek yamero
102c3ba001 Translated using Weblate (French)
Currently translated at 96.4% (54 of 56 strings)

Translation: YunoHost/moulinette
Translate-URL: https://translate.yunohost.org/projects/yunohost/moulinette/fr/
2019-08-16 07:56:13 +00:00
Alexandre Aubin
d8cbbb05f7 For some reason we need python-setuptools to build now... 2019-08-12 13:48:23 +02:00
Alexandre Aubin
052e962465 Merge branch 'stretch-stable' into stretch-unstable 2019-08-05 18:42:13 +02:00
Alexandre Aubin
3cade15194 Update changelog for 3.6.4.1 2019-08-05 18:41:20 +02:00
Alexandre Aubin
68d786d2c1 Gotta catch them all... 2019-08-05 18:39:41 +02:00
Alexandre Aubin
b393d55ebd Gotta catch them all... 2019-08-05 18:01:05 +02:00
Alexandre Aubin
2e2e627894 [yolo] Add a write_to_yaml utility similar to write_to_json 2019-08-05 17:59:10 +02:00
Laurent Peuch
ed3823b88e [mod] only uses doc/requirements.txt in tox for docs 2019-08-04 20:01:16 +02:00
Laurent Peuch
49c749c773 [fix] remove tox old deprecated option 2019-08-04 19:47:05 +02:00
Laurent Peuch
dced104c9d [mod] use docs requirements.txt file 2019-08-04 19:46:55 +02:00
Laurent Peuch
307f660230 [mod] allow to only build doc with sphinx 2019-08-04 19:46:42 +02:00
Luke Murphy
d52a574f77 Test documentation under Tox 2019-08-04 19:46:20 +02:00
Laurent Peuch
af2c80c3e2 [fix] this function doesn't exist anymore 2019-08-04 19:06:27 +02:00
Laurent Peuch
bcf92c707e [fix] bad images file names 2019-08-04 19:06:19 +02:00
Laurent Peuch
74c8f799a1 [fix] too short ---- subtitle line 2019-08-04 19:06:13 +02:00
Laurent Peuch
df7d47831b [doc/fix] you need a blank line after :: 2019-08-04 19:06:00 +02:00
Laurent Peuch
f1ac5b8fe6 [doc/fix] fix doc building 2019-08-04 19:05:33 +02:00
Laurent Peuch
004a8e5567 [doc/fix] ref to actionmap didn't existed 2019-08-04 19:05:18 +02:00
Laurent Peuch
f49c004a59 [mod] add detail error messages on asserts 2019-08-04 18:48:16 +02:00
Alexandre Aubin
758778a04b Typo 2019-08-03 21:24:48 +02:00
Bram
2e73e0f328
Merge pull request #212 from decentral1se/fix-lint-tests
Appease linter with right spacing
2019-08-01 17:32:18 +02:00
Luke Murphy
7b6ff983cd
Appease linter with right spacing 2019-08-01 16:54:55 +02:00
Alexandre Aubin
6185526bb4
Merge pull request #211 from decentral1se/fix-broken-import
Import DATA_DIR correctly
2019-08-01 16:53:46 +02:00
Luke Murphy
659e20d5f5
Import DATA_DIR correctly
Fix for f6bfabc7aa.
2019-08-01 16:51:04 +02:00
Alexandre Aubin
f6bfabc7aa
Merge pull request #207 from decentral1se/refactor-global-loading
Refactor global loading
2019-08-01 12:20:38 +02:00
Alexandre Aubin
c2886b3d3c
Merge pull request #210 from decentral1se/parallel-linting-tox-travis
Add lint job to Tox and Travis
2019-08-01 12:19:09 +02:00
Luke Murphy
dfd0868510
Use flake8 under Tox and fix complaints 2019-07-29 13:26:16 +02:00
Laurent Peuch
1f10529209 [fix] syntax error, again -_-' 2019-07-29 03:56:10 +02:00