Commit Graph

95 Commits

Author SHA1 Message Date
Frédéric Péters 36cc71044c misc: add tiny /r/{formdef-id}-{formdata-id} URL redirections (#48159) 2024-01-29 14:45:44 +01:00
Frédéric Péters 2b61be0799 misc: skip passive SSO earlier for API calls (#43196)
(and extend backoffice path support to 'manage')
2024-01-12 15:05:25 +01:00
Frédéric Péters 212197150d misc: use session to track passive auth (#43196) 2024-01-12 15:05:25 +01:00
Frédéric Péters 78f7292cfa misc: abort requests if site-options is invalid (#53587) 2023-08-11 00:31:13 +02:00
Frédéric Péters fb9c81f010 backoffice: add redirects from /manage/ (#12446) 2023-08-02 10:29:43 +02:00
Frédéric Péters df35bc818f misc: replace html_top by response methods (#77144)
gitea/wcs/pipeline/head This commit looks good Details
2023-05-15 17:19:22 +02:00
Frédéric Péters 35084ea031 misc: avoid passive SSO for api/backoffice/login URLs (#73670) 2023-02-24 11:23:09 +01:00
Frédéric Péters a264458bca misc: undeclare /themes/ path (#73614) 2023-01-20 09:35:45 +01:00
Frédéric Péters ccbcd8857a saml: create a new session if expired during passive SSO (#72898) 2023-01-06 17:45:09 +01:00
Frédéric Péters 96ff5b3f77 misc: redirect /myspace/ to idp account page (#72819) 2023-01-02 17:14:47 +01:00
Benjamin Dauvergne 6a4cea8b30 misc: improve passive sso on state change (#67090)
- automatic_sso is renamed try_passive_sso to be clearer on the goal of
  the method,
- test for possible passive sso is now done before rendering the current
  page,
- on a succesfull SSO if <idp_session_cookie_name> cookie is present,
  its value is saved in the Quixote session,
- behaviour of try_passive_sso is changed:
  - if user is logged in or <idp_session_cookie_name> cookie value
    differs from the value in '*-passive-auth-tried' cookie, the
    '*-passive-auth-tried' cookie is expired,
  - if user is logged and <idp_session_cookie_name> cookie cookie value
    differs from the one saved in the Quixote session, user is logged
    out, if not treatment stop here.
  - if the <idp_session_cookie_name> cookie cookie is not valued or if
    its value is equal to '*-passive-auth-tried' cookie, treatment stops
here,
  - if the <idp_session_cookie_name> cookie is valued and its value
    differs from the '*-passive-auth-tried' cookie cookie value, then
    '*-passive-auth-tried' cookie is set to the value of
    <idp_session_cookie_name> cookie and a passive SSO is tried.
2022-12-27 09:43:32 +01:00
Frédéric Péters 04aa4f280d misc: simplify identification subsystem selection (pick saml or first) (#72001) 2022-12-09 07:44:49 +01:00
Frédéric Péters 43daf96689 misc: allow /lang/ prefix to force language (#70584) 2022-11-18 07:23:09 +01:00
Frédéric Péters 9d0aa64a6c misc: remove static pages support (#70853) 2022-10-31 06:35:16 +01:00
Frédéric Péters 8f43c01bea misc: redirect form{def,data} URL to include category slug (#69546) 2022-10-28 10:24:35 +02:00
Frédéric Péters 3c9702e546 Revert "misc: redirect form URL to include category slug (#69546)"
This reverts commit 025d7e468d.
2022-10-20 21:36:23 +02:00
Frédéric Péters 025d7e468d misc: redirect form URL to include category slug (#69546) 2022-10-20 20:54:33 +02:00
Frédéric Péters 2d71198352 general: remove legacy theming code (#70128) 2022-10-14 11:09:40 +02:00
Frédéric Péters 256bc2f892 misc: do not allow downloading files on remote storage (#67220) 2022-07-11 14:45:42 +02:00
Frédéric Péters 6d38088e5e misc: allow downloading file while submitting (#66460) 2022-06-27 10:19:29 +02:00
Frédéric Péters ca940dec59 misc: use xstatic-select2 instead of local copy (#63487) 2022-04-04 13:28:49 +02:00
Frédéric Péters 080ec01cce general: remove tracing logs (#61292) 2022-02-01 20:08:56 +01:00
Frédéric Péters 7338e136e5 misc: allow "rich" text in comments (#27994) 2022-01-16 13:34:19 +01:00
Frédéric Péters 4fe9cd2f76 misc: turn /i18n.js into a pure django view (#59888) 2021-12-20 17:50:32 +01:00
Frédéric Péters 2ca2ee402c trivial: add noqa markers to new pylint warnings 2021-09-16 23:52:50 +02:00
Paul Marillonnet e27f5b7e66 misc: replace get_logger().error() with newer record_error() (#55437) 2021-09-11 18:52:04 +02:00
Frédéric Péters 0da7edeab8 general: add and use a lazy gettext function (#51289) 2021-05-17 09:40:04 +02:00
Frédéric Péters cd2753527f misc: add SameSite cookie attribute (fix2 for erroneous merge) (#52356) 2021-03-31 13:24:48 +02:00
Frédéric Péters 86a24e5987 misc: add SameSite cookie attribute (#52356) 2021-03-31 08:03:32 +02:00
Frédéric Péters 08f1431a66 trivial: apply new isort configuration (#52504) 2021-03-30 13:42:22 +02:00
Lauréline Guérin d88dd530f6
misc: pylint fix unneeded-not (#52222) 2021-03-29 10:28:31 +02:00
Lauréline Guérin 157f97a27a
misc: pylint fix unused-variable (#52222) 2021-03-29 10:28:29 +02:00
Lauréline Guérin fe8b9f3d7a
misc: pylint fix unused-import (#52222) 2021-03-29 10:28:29 +02:00
Lauréline Guérin 6ca8dc014c
misc: pylint fix unused-wildcard-import (#52222) 2021-03-29 10:28:29 +02:00
Lauréline Guérin 48470c50c0
misc: apply isort (#52224) 2021-03-19 18:00:18 +01:00
Frédéric Péters e7292f6f3f misc: remove usage of "six" module (#51517) 2021-03-01 15:43:54 +01:00
Frédéric Péters 4ebe82ef21 trivial: apply black 2021-02-04 10:37:40 +01:00
Frédéric Péters 417c7f6910 forms: detect and suggest fixes for typos in email domains (#42396) 2020-06-12 07:07:12 +02:00
Benjamin Dauvergne 7134680e7c root: implement automatic tryauth (#12867) 2020-05-20 13:33:41 +02:00
Frédéric Péters d286bcfbfe misc: check file type before upload (#40932) 2020-04-27 22:20:42 +02:00
Frédéric Péters d65f1d5ef8 misc: translate js dialog close button text (#42093) 2020-04-26 17:38:57 +02:00
Frédéric Péters a6c5831933 ident: don't expose register page if it doesn't exist for method (#40935) 2020-03-27 07:52:23 +01:00
Frédéric Péters dc0a00446c misc: check file size before upload (#13395) 2020-03-17 11:24:03 +01:00
Thomas NOËL 800d81cb2e handle storage error on file upload (#40044) 2020-03-03 09:44:10 +01:00
Thomas NOËL 36710b94c8 add alternative storage system (#39517) 2020-02-20 00:39:47 +01:00
Frédéric Péters c2c1fcdf50 maps: use Leaflet.GestureHandling to avoid zooming on map during scroll (#39058) 2020-01-27 17:50:48 +01:00
Frédéric Péters dffbce03ea misc: remove obsolete reload-top page (#39258) 2020-01-27 10:11:48 +01:00
Frédéric Péters a619da3bb7 tests: add basic test of /tmp-upload/ 2020-01-25 21:45:39 +01:00
Frédéric Péters d81959f81f trivial: insure two blank lines before top functions and classes 2020-01-18 20:33:44 +01:00
Frédéric Péters 58709d3084 misc: get urllib from django.six (#36515) 2019-11-20 09:17:17 +01:00