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

Unified Diff: tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_via_grant.go

Issue 2785973002: token-server: Add protos for new API for generating service account tokens. (Closed)
Patch Set: more nits Created 3 years, 5 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
Index: tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_via_grant.go
diff --git a/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_via_grant.go b/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_via_grant.go
new file mode 100644
index 0000000000000000000000000000000000000000..09e902d03d966e92078b1a907429c38b8cbba179
--- /dev/null
+++ b/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_via_grant.go
@@ -0,0 +1,23 @@
+// Copyright 2017 The LUCI Authors. All rights reserved.
+// Use of this source code is governed under the Apache License, Version 2.0
+// that can be found in the LICENSE file.
+
+package serviceaccounts
+
+import (
+ "golang.org/x/net/context"
+ "google.golang.org/grpc"
+ "google.golang.org/grpc/codes"
+
+ "github.com/luci/luci-go/tokenserver/api/minter/v1"
+)
+
+// MintOAuthTokenViaGrantRPC implements TokenMinter.MintOAuthTokenViaGrant
+// method.
+type MintOAuthTokenViaGrantRPC struct {
+}
+
+// MintOAuthTokenViaGrant produces new OAuth token given a grant.
+func (r *MintOAuthTokenViaGrantRPC) MintOAuthTokenViaGrant(c context.Context, req *minter.MintOAuthTokenViaGrantRequest) (*minter.MintOAuthTokenViaGrantResponse, error) {
+ return nil, grpc.Errorf(codes.Unavailable, "not implemented")
+}

Powered by Google App Engine
This is Rietveld 408576698