Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(15)

Issue 1261403003: Initial skeletal implementation of the PrincipalService. Also, use the Login()/GetUserBlessing() (Closed)

Created:
5 years, 4 months ago by gautham
Modified:
5 years, 4 months ago
CC:
Aaron Boodman, abarth-chromium, ben+mojo_chromium.org, darin (slow to review), gregsimon, mojo-reviews_chromium.org, qsr+mojo_chromium.org, viettrungluu+watch_chromium.org, yzshen+watch_chromium.org
Base URL:
https://github.com/domokit/mojo.git@master
Target Ref:
refs/heads/master
Project:
mojo
Visibility:
Public.

Description

Initial skeletal implementation of the PrincipalService. Also, use the Login()/GetUserBlessing() service from echo_client/echo_server. R=jamesr@chromium.org, ataly@google.com Committed: https://chromium.googlesource.com/external/mojo/+/658bb42c0c386630ee6257a4f7cde4aa138d50a8

Patch Set 1 #

Patch Set 2 : AppIdentity -> AppName #

Patch Set 3 : Default blessings #

Total comments: 12

Patch Set 4 : code-review comments from ataly #

Total comments: 6

Patch Set 5 : code-review comments from jamesr #

Patch Set 6 : Add a new example for user authorization #

Total comments: 2

Patch Set 7 : updates to the app/principalservice #

Patch Set 8 : minor logging fixes #

Total comments: 44

Patch Set 9 : code-review comments #

Patch Set 10 : minor fix #

Patch Set 11 : indentation #

Total comments: 38

Patch Set 12 : code-review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+383 lines, -18 lines) Patch
M examples/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + examples/bank_app/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +13 lines, -12 lines 0 comments Download
A examples/bank_app/README.md View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +13 lines, -0 lines 0 comments Download
A examples/bank_app/bank.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +100 lines, -0 lines 0 comments Download
A + examples/bank_app/bank.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +4 lines, -2 lines 0 comments Download
A examples/bank_app/customer.cc View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +64 lines, -0 lines 0 comments Download
M mojo/services/mojo_services.gni View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A + mojo/services/vanadium/security/public/interfaces/BUILD.gn View 1 chunk +1 line, -1 line 0 comments Download
A mojo/services/vanadium/security/public/interfaces/principal.mojom View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +49 lines, -0 lines 0 comments Download
M services/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +3 lines, -0 lines 0 comments Download
A + services/vanadium/security/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +6 lines, -3 lines 0 comments Download
A services/vanadium/security/principal_service.go View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +126 lines, -0 lines 0 comments Download

Messages

Total messages: 25 (6 generated)
ataly
Overall, looks good to me. I added a few minor comments on the mojom definitions. ...
5 years, 4 months ago (2015-07-31 19:04:04 UTC) #3
gauthamt
https://codereview.chromium.org/1261403003/diff/40001/examples/echo/echo_server.cc File examples/echo/echo_server.cc (right): https://codereview.chromium.org/1261403003/diff/40001/examples/echo/echo_server.cc#newcode57 examples/echo/echo_server.cc:57: // EchoClient user available in b.get()->chain[0]->extension On 2015/07/31 19:04:04, ...
5 years, 4 months ago (2015-07-31 20:24:17 UTC) #5
jamesr
Could you make a copy of the existing echo example that uses this functionality so ...
5 years, 4 months ago (2015-08-03 18:26:39 UTC) #7
gautham
Thanks for the review. I added a c++ implementation of PrincipalService that gets used when ...
5 years, 4 months ago (2015-08-03 21:45:04 UTC) #8
jamesr
I'd still prefer leaving echo_server/client alone and adding a new example that shows how to ...
5 years, 4 months ago (2015-08-03 21:53:19 UTC) #9
gautham
On 2015/08/03 21:53:19, jamesr wrote: > I'd still prefer leaving echo_server/client alone and adding a ...
5 years, 4 months ago (2015-08-04 02:57:01 UTC) #10
gautham
Please take another look when you get a chance. Gautham
5 years, 4 months ago (2015-08-06 20:58:26 UTC) #11
jamesr
I'm still not sure how this system is supposed to integrate with information available in ...
5 years, 4 months ago (2015-08-11 21:55:08 UTC) #12
gauthamt
https://codereview.chromium.org/1261403003/diff/100001/mojo/services/vanadium/security/public/interfaces/principal.mojom File mojo/services/vanadium/security/public/interfaces/principal.mojom (right): https://codereview.chromium.org/1261403003/diff/100001/mojo/services/vanadium/security/public/interfaces/principal.mojom#newcode10 mojo/services/vanadium/security/public/interfaces/principal.mojom:10: struct AppInstanceName { On 2015/08/11 21:55:08, jamesr wrote: > ...
5 years, 4 months ago (2015-08-11 22:21:20 UTC) #14
gautham
This includes an implementation of the PrincipalService table and updates to the Bank/Customer app. Thanks ...
5 years, 4 months ago (2015-08-12 02:31:05 UTC) #15
gautham
Reminder about this CL. Gautham
5 years, 4 months ago (2015-08-14 16:33:27 UTC) #16
jamesr
Left some comments about the C++ code and interface. I'm less familiar with the go ...
5 years, 4 months ago (2015-08-17 21:38:22 UTC) #17
gautham
Thanks for the review. I've removed the C++ version of the principal_service. I've made the ...
5 years, 4 months ago (2015-08-18 01:54:22 UTC) #18
jamesr
https://codereview.chromium.org/1261403003/diff/200001/examples/bank_app/bank.cc File examples/bank_app/bank.cc (right): https://codereview.chromium.org/1261403003/diff/200001/examples/bank_app/bank.cc#newcode17 examples/bank_app/bank.cc:17: namespace mojo { drop the 'mojo::' part https://codereview.chromium.org/1261403003/diff/200001/examples/bank_app/bank.cc#newcode20 examples/bank_app/bank.cc:20: ...
5 years, 4 months ago (2015-08-19 05:30:55 UTC) #19
ashankar
Just some random notes, I by no means know what the Mojo way is yet ...
5 years, 4 months ago (2015-08-19 05:50:39 UTC) #21
gautham
https://codereview.chromium.org/1261403003/diff/200001/examples/bank_app/BUILD.gn File examples/bank_app/BUILD.gn (right): https://codereview.chromium.org/1261403003/diff/200001/examples/bank_app/BUILD.gn#newcode3 examples/bank_app/BUILD.gn:3: # found in the LICENSE file. On 2015/08/19 05:50:38, ...
5 years, 4 months ago (2015-08-19 17:45:51 UTC) #22
ashankar
Looks good to me, thanks
5 years, 4 months ago (2015-08-19 18:28:35 UTC) #23
jamesr
lgtm
5 years, 4 months ago (2015-08-19 19:08:00 UTC) #24
gautham
5 years, 4 months ago (2015-08-19 19:40:49 UTC) #25
Message was sent while issue was closed.
Committed patchset #12 (id:220001) manually as
658bb42c0c386630ee6257a4f7cde4aa138d50a8 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698