Commit Graph

3996 Commits

Author SHA1 Message Date
Emmanuel Cazenave 5f979ba5e8 delete addtoblock and renderblock tags (#25361)
gitea/authentic/pipeline/head Build started... Details
2018-07-27 17:13:42 +02:00
Emmanuel Cazenave f404494057 delete superfluous template tag call (#25518) 2018-07-27 16:52:10 +02:00
Frédéric Péters 3dc6b4aab4 api: mark all fields of OrganizationalUnit for serializer (#25405) 2018-07-24 11:44:15 +02:00
Frédéric Péters 69cc0ae605 misc: adjust width of ok checkmarks (#25404) 2018-07-23 16:14:22 +02:00
Frédéric Péters b69eb9bec2 misc: adjust style of new password help texts (#25404) 2018-07-23 14:40:55 +02:00
Frédéric Péters 8754e9b2b0 tests: add proper fix for test of validation error message (#25403) 2018-07-23 12:17:54 +02:00
Benjamin Dauvergne 9705aef9a6 tests: fix test folowing change in validation error message (#25403) 2018-07-23 11:44:11 +02:00
Frédéric Péters 5841264c29 update translation with new password error message 2018-07-23 11:08:11 +02:00
Frédéric Péters aa7d3df158 misc: use fixed error message for invalid passwords (#25403) 2018-07-23 11:06:45 +02:00
Benjamin Dauvergne 8ecae2514a update french translation (#22225) 2018-07-23 11:03:10 +02:00
Benjamin Dauvergne b6e41da2be templates: change wording for password change (fixes #22225) 2018-07-23 11:00:16 +02:00
Frédéric Péters ab267ddac5 translation: adjust matching password messages (#25409) 2018-07-23 09:51:04 +02:00
Benjamin Dauvergne 1020d50ed3 update french translation (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne c46822af58 use new password fields in registration form (fixes #24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne f36b480419 add new widget and fields for passwords (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 6a44c5f558 move all password related functions in authentic2.passwords (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne d3655cf16a move authentic2.widgets to authentic2.forms.widgets (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 4663e217ab create authentic2.forms package (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne e32621c1c7 api: allow empty password in validate-password (#24439) 2018-07-20 17:07:18 +02:00
Benjamin Dauvergne 93457ecf44 api: do not do CSRF check on validate-password API (#24439)
This API is public.
2018-07-20 17:07:18 +02:00
Benjamin Dauvergne da0ab04ab0 templates: output form.media in base template (#24439)
It's the new habit downstream.
2018-07-20 17:07:18 +02:00
Emmanuel Cazenave c5c0764c05 use django.forms.utils (#25317) 2018-07-19 14:42:50 +02:00
Benjamin Dauvergne 8ed0beb8fa ldap: do not validate session stored settings (fixes #25369) 2018-07-19 14:19:31 +02:00
Frédéric Péters e87ba08146 misc: don't use addtoblock to add js_seconds_until.js (#25346) 2018-07-19 08:35:31 +02:00
Benjamin Dauvergne 6235bc1782 backends/ldap: convert to iterable before type checking (#25327)
Revert d11d86bb50.
2018-07-18 11:25:24 +02:00
Benjamin Dauvergne 773b9c8333 tests: fix NameError (introduced by #25182) 2018-07-18 11:08:04 +02:00
Frédéric Péters d11d86bb50 backends/ldap: don't set a default value for group{su,staff,active} (#25327) 2018-07-18 10:56:32 +02:00
Benjamin Dauvergne f3a8061893 update french translation (#24833) 2018-07-18 10:54:22 +02:00
Benjamin Dauvergne 291dc5e2f9 convert password validation code to new API (#24833) 2018-07-18 10:54:22 +02:00
Benjamin Dauvergne 35b3136ef4 add new API to validate passwords (fixes #24833)
POST /api/validate-password/ HTTP/1.1
Conten-Type: application/json

{"password": "whatever"}
200 Ok
Content-Type: application/json

{
  "result": 1,
  "ok": false,
  "checks": [
    {"label": "at least 1 digit", "result": false}
  ]
}

This API is public.
2018-07-18 10:54:22 +02:00
Emmanuel Cazenave 103acb8dea use stdlib OrderedDict (#25319) 2018-07-17 17:54:24 +02:00
Benjamin Dauvergne 38298c3192 api: add parameters to filter users by allowed services (fixes #22377) 2018-07-17 16:38:35 +02:00
Elias Showk 835e0cf940 replace django.utils.timezone.UTC by utc (#25313) 2018-07-17 16:26:10 +02:00
Benjamin Dauvergne 2f0ae6bacf idp_oidc: fix synchronization API calls when OIDC client use UUID identifier policy (fixes #25182) 2018-07-17 16:15:55 +02:00
Benjamin Dauvergne 24c35c5ce8 backends/ldap: revert setting a default value for url (#23698) 2018-07-17 16:05:14 +02:00
Emmanuel Cazenave 7d53bfcb3c delete some django < 1.8 compatiblity code (#25097) 2018-07-17 15:56:52 +02:00
Emmanuel Cazenave 5afd362bc3 quiet some RemovedInDjango19Warning warnings (#25222) 2018-07-17 15:55:51 +02:00
Emmanuel Cazenave af036b783d don't use SubfieldBase (#24869) 2018-07-17 15:52:57 +02:00
Emmanuel Cazenave 30708c0c7c test custom fields using SubfieldBase (#24869) 2018-07-17 15:52:49 +02:00
Benjamin Dauvergne 70ee9c5d0d fix french translation (fixes #25015) 2018-07-17 11:56:22 +02:00
Benjamin Dauvergne 038697aae9 idp/saml2: do not accept logout request missing a NameID (fixes #24214)
Lasso should fail in the process_logout_request(), it does not, we
handle it here.
2018-07-17 11:54:53 +02:00
Benjamin Dauvergne 700786714f idp/saml: do not modify absent response on ProfileInvalidProtocolprofileError (fixes #24189)
On this path it's impossible to return an AuthnResponse as Lasso cannot
decide on the destination URL, as no protocol profile could be
determined.
2018-07-17 11:51:43 +02:00
Benjamin Dauvergne 26d39e05ad tests: adapt test to new organization name (#20731) 2018-07-17 11:25:54 +02:00
Elias Showk 49420b2b96 removed django-admin-tools (#22626) 2018-07-17 09:21:07 +02:00
Benjamin Dauvergne 0445badc95 backends/ldap: apply force_bytes inside all structured settings (fixes #23698) 2018-07-17 01:08:49 +02:00
Benjamin Dauvergne f2c5b172be backends/ldap: improve style of error logging (#23698)
Log string should be unicode removing the need to unicode cast the user.
2018-07-17 01:08:49 +02:00
Benjamin Dauvergne a22a797172 backends/ldap: convert all use of unicode/str to force_text/force_bytes (#23698) 2018-07-17 01:08:49 +02:00
Benjamin Dauvergne 2c816d1a2e backends/ldap: convert all use of smart_bytes/texts to their force_ equivalent (#23698)
smart_* should only be used with lazy strings.
2018-07-17 01:08:49 +02:00
Benjamin Dauvergne d01ded90af backends/ldap: remove unused settings from defaults (#23698) 2018-07-17 01:08:49 +02:00
Benjamin Dauvergne 195b12ff39 backends/ldap: set proper default for iterable and strings (#23698) 2018-07-17 01:08:49 +02:00