Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
22a20044
Commit
22a20044
authored
6 years ago
by
Travis Ralston
Browse files
Options
Downloads
Patches
Plain Diff
Update documentation and templates for new consent
parent
7ede6509
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
docs/consent_tracking.md
+9
-4
9 additions, 4 deletions
docs/consent_tracking.md
docs/privacy_policy_templates/en/1.0.html
+9
-6
9 additions, 6 deletions
docs/privacy_policy_templates/en/1.0.html
with
18 additions
and
10 deletions
docs/consent_tracking.md
+
9
−
4
View file @
22a20044
...
...
@@ -31,7 +31,7 @@ Note that the templates must be stored under a name giving the language of the
template - currently this must always be
`en`
(for "English");
internationalisation support is intended for the future.
The template for the policy itself should be versioned and named according to
The template for the policy itself should be versioned and named according to
the version: for example
`1.0.html`
. The version of the policy which the user
has agreed to is stored in the database.
...
...
@@ -81,9 +81,9 @@ should be a matter of `pip install Jinja2`. On debian, try `apt-get install
python-jinja2`
.
Once this is complete, and the server has been restarted, try visiting
`https://<server>/_matrix/consent`
. If correctly configured,
this
should
give
an error "Missing string query parameter 'u'"
. It is now possible to manually
construct URIs where
users can give their consent.
`https://<server>/_matrix/consent`
. If correctly configured,
you
should
see a
default policy document
. It is now possible to manually
construct URIs where
users can give their consent.
### Constructing the consent URI
...
...
@@ -106,6 +106,11 @@ query parameters:
`https://<server>/_matrix/consent?u=<user>&h=68a152465a4d...`
.
Note that not providing a
`u`
parameter will be interpreted as wanting to view
the document from an unauthenticated perspective, such as prior to registration.
Therefore, the
`h`
parameter is not required in this scenario.
Sending users a server notice asking them to agree to the policy
----------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
docs/privacy_policy_templates/en/1.0.html
+
9
−
6
View file @
22a20044
...
...
@@ -12,12 +12,15 @@
<p>
All your base are belong to us.
</p>
<form
method=
"post"
action=
"consent"
>
<input
type=
"hidden"
name=
"v"
value=
"{{version}}"
/>
<input
type=
"hidden"
name=
"u"
value=
"{{user}}"
/>
<input
type=
"hidden"
name=
"h"
value=
"{{userhmac}}"
/>
<input
type=
"submit"
value=
"Sure thing!"
/>
</form>
{% if not public_version %}
<!-- The variables used here are only provided when the 'u' param is given to the homeserver -->
<form
method=
"post"
action=
"consent"
>
<input
type=
"hidden"
name=
"v"
value=
"{{version}}"
/>
<input
type=
"hidden"
name=
"u"
value=
"{{user}}"
/>
<input
type=
"hidden"
name=
"h"
value=
"{{userhmac}}"
/>
<input
type=
"submit"
value=
"Sure thing!"
/>
</form>
{% endif %}
{% endif %}
</body>
</html>
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment