Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: sitescripts/reports/README.md

Issue 29584613: #4431 - Introduce sitescripts.reports.web.resolveReport handler (Closed)
Patch Set: Address comments on PS1 Created Oct. 24, 2017, 3:35 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | sitescripts/reports/tests/test_resolveReport.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Scripts and web handlers for reports
2
3 ## resolveReport
4
5 This handler is mounted under `/resolveReport` and should be called as follows:
6
7 http://<hostname>/<prefix>/resolveReport?<encrypted-report-id>
8
9 If the report id is successfully decrypted, a `302 Found` response will be
10 returned redirectring to the url of the report. If the encrypted report id
11 is in the wrong format or encryption fails, a `404 Not Found` response will be
12 returned.
13
14 ### Configuration
15
16 The handler is configured via sitescripts config. In order to activate this
17 handler, add the following line to multiplexer config:
18
19 [multiplexer]
20 sitescripts.reports.web.resolveReport =
21
22 Its own configuration is in the section `reports_anonymization`:
23
24 [reports_anonymization]
25 encryption_key = <base64-encrypted-key>
26 redirect_url = https://target.host.com/reports/{report_id}
27
28 The redirect URL could be any string. `{report_id}` will be replaced by
29 the decrypted id of the report.
OLDNEW
« no previous file with comments | « no previous file | sitescripts/reports/tests/test_resolveReport.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld