annotate .hgignore @ 956:dabecab10faa

server (pages): impleted CSRF protection: A basic CSRF protection has been implemented using CSRF token. The token is created on session creation, and checked on data post. The process should be fully automatic, and a hidden field is added in forms in sat_templates when csrf_token is present in template data (require to import input/form.html with context). If token is wrong on absent, an unauthorized error page is returned (and client ip is logged). Also don't use anymore inlineCallbacks in _on_data_post, as StopIteration exception are catched by inlineCallbacks, resulting in bad behaviour. As a further security, getPostedDate raise a KeyError instead of StopIteration is a specific key is looked for and missing. Added HTTP_SEE_OTHER status code in constants.
author Goffi <goffi@goffi.org>
date Mon, 10 Jul 2017 19:10:31 +0200
parents a5019e62c3e9
children a44f77559279
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
1 syntax: glob
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
2 *.pyc
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
3 *.pyv
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
4 *.swp
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
5 *.swo
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
6 *.js
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
7 tags
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
8 twistd.log
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
9 twistd.pid
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
10 sat.egg-info
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
11 *.un~
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
12 dist
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
13 MANIFEST
140cec48224a Initial commit
Goffi <goffi@goffi.org>
parents:
diff changeset
14 *.sh
5
c8d3821efc36 added build/ and Session.vim to .hgignore
Goffi <goffi@goffi.org>
parents: 0
diff changeset
15 build/
c8d3821efc36 added build/ and Session.vim to .hgignore
Goffi <goffi@goffi.org>
parents: 0
diff changeset
16 Session.vim
180
ea6ae7c4b3f0 misc: added ctags_links to .hgignore
Goffi <goffi@goffi.org>
parents: 5
diff changeset
17 ctags_links/
589
a5019e62c3e9 browser side: big refactoring to base Libervia on QuickFrontend, first draft:
Goffi <goffi@goffi.org>
parents: 180
diff changeset
18 html/