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

Unified Diff: tokenserver/api/admin/v1/adminserver_dec.go

Issue 2413683004: token-server: Delegation config import, validation and evaluation. (Closed)
Patch Set: also check validity_duration Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tokenserver/api/admin/v1/admin.pb.go ('k') | tokenserver/api/admin/v1/certificate_authorities.pb.go » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tokenserver/api/admin/v1/adminserver_dec.go
diff --git a/tokenserver/api/admin/v1/adminserver_dec.go b/tokenserver/api/admin/v1/adminserver_dec.go
index 3d46ad444978f7b686f8c8271d252ca12c7abb86..6aa3abd2316e86989bac4829e795c23c92419d3e 100644
--- a/tokenserver/api/admin/v1/adminserver_dec.go
+++ b/tokenserver/api/admin/v1/adminserver_dec.go
@@ -39,6 +39,21 @@ func (s *DecoratedAdmin) ImportCAConfigs(c context.Context, req *google_protobuf
return
}
+func (s *DecoratedAdmin) ImportDelegationConfigs(c context.Context, req *google_protobuf.Empty) (rsp *ImportedConfigs, err error) {
+ var newCtx context.Context
+ if s.Prelude != nil {
+ newCtx, err = s.Prelude(c, "ImportDelegationConfigs", req)
+ }
+ if err == nil {
+ c = newCtx
+ rsp, err = s.Service.ImportDelegationConfigs(c, req)
+ }
+ if s.Postlude != nil {
+ err = s.Postlude(c, "ImportDelegationConfigs", rsp, err)
+ }
+ return
+}
+
func (s *DecoratedAdmin) InspectMachineToken(c context.Context, req *InspectMachineTokenRequest) (rsp *InspectMachineTokenResponse, err error) {
var newCtx context.Context
if s.Prelude != nil {
« no previous file with comments | « tokenserver/api/admin/v1/admin.pb.go ('k') | tokenserver/api/admin/v1/certificate_authorities.pb.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698