Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(94)

Issue 11725044: GUI server authentication.

Can't Edit
Can't Publish+Mail
Start Review
Created:
10 years, 9 months ago by frankban
Modified:
10 years, 9 months ago
Reviewers:
mp+176738, teknico, benji
Visibility:
Public.

Description

GUI server authentication. Added authentication management to the Tornado server. The WebSocket handler includes a way to know if the connected client is logged in to the API server. Both Go and Python API implementations are supported. Also implemented WebSocket messages validation. I am sorry: this diff is quite long. In my defence, the code is full of tests and documentation... Well, sorry again. Tests: `make unittest` https://code.launchpad.net/~frankban/charms/precise/juju-gui/server-auth/+merge/176738 (do not edit description out of merge proposal)

Patch Set 1 #

Total comments: 5

Patch Set 2 : GUI server authentication. #

Total comments: 1

Patch Set 3 : GUI server authentication. #

Patch Set 4 : GUI server authentication. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+809 lines, -62 lines) Patch
A [revision details] View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M revision View 1 chunk +1 line, -1 line 0 comments Download
M server/guiserver/apps.py View 2 chunks +9 lines, -3 lines 0 comments Download
A server/guiserver/auth.py View 1 2 1 chunk +215 lines, -0 lines 0 comments Download
M server/guiserver/handlers.py View 5 chunks +18 lines, -4 lines 0 comments Download
M server/guiserver/manage.py View 1 2 2 chunks +27 lines, -3 lines 0 comments Download
M server/guiserver/tests/helpers.py View 2 chunks +78 lines, -0 lines 0 comments Download
A server/guiserver/tests/test_auth.py View 1 2 1 chunk +231 lines, -0 lines 0 comments Download
M server/guiserver/tests/test_handlers.py View 1 2 6 chunks +140 lines, -40 lines 0 comments Download
M server/guiserver/tests/test_manage.py View 1 2 chunks +38 lines, -10 lines 0 comments Download
M server/guiserver/tests/test_utils.py View 1 2 chunks +25 lines, -0 lines 0 comments Download
M server/guiserver/utils.py View 2 chunks +23 lines, -0 lines 0 comments Download
M server/runserver.py View 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 9
frankban
Please take a look.
10 years, 9 months ago (2013-07-24 16:35:48 UTC) #1
benjamin.saller
My prelim look over the code was nice. make unittests fails with various modules apparently ...
10 years, 9 months ago (2013-07-24 21:33:11 UTC) #2
frankban
On 2013/07/24 21:33:11, benjamin.saller wrote: > My prelim look over the code was nice. make ...
10 years, 9 months ago (2013-07-25 07:43:26 UTC) #3
benji
This branch is great. The docstrings and comments are especially well done. Not to mention ...
10 years, 9 months ago (2013-07-25 13:20:58 UTC) #4
frankban
Please take a look. https://codereview.appspot.com/11725044/diff/1/server/guiserver/tests/test_manage.py File server/guiserver/tests/test_manage.py (right): https://codereview.appspot.com/11725044/diff/1/server/guiserver/tests/test_manage.py#newcode116 server/guiserver/tests/test_manage.py:116: with mock.patch('guiserver.manage.options', {'arg1': None}): On ...
10 years, 9 months ago (2013-07-25 14:23:30 UTC) #5
teknico
LGTM, impressive work indeed. One trivial below. Also, consider only saying "log in" and "logged ...
10 years, 9 months ago (2013-07-25 15:30:50 UTC) #6
frankban
Thank you both for the reviews! > LGTM, impressive work indeed. One trivial below. Also, ...
10 years, 9 months ago (2013-07-25 15:44:06 UTC) #7
frankban
Please take a look.
10 years, 9 months ago (2013-07-25 15:44:43 UTC) #8
frankban
10 years, 9 months ago (2013-07-25 15:48:30 UTC) #9
*** Submitted:

GUI server authentication.

Added authentication management to the Tornado server.
The WebSocket handler includes a way to know if the
connected client is logged in to the API server.
Both Go and Python API implementations are supported.

Also implemented WebSocket messages validation.

I am sorry: this diff is quite long.
In my defence, the code is full of tests and 
documentation... Well, sorry again.

Tests: `make unittest`

R=benjamin.saller, benji, teknico
CC=
https://codereview.appspot.com/11725044
Sign in to reply to this message.

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b