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

Unified Diff: tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_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_grant.go
diff --git a/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_grant.go b/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_grant.go
new file mode 100644
index 0000000000000000000000000000000000000000..c111a1600536ed09a746f0b619add4bb9ac3ae14
--- /dev/null
+++ b/tokenserver/appengine/impl/serviceaccounts/rpc_mint_oauth_token_grant.go
@@ -0,0 +1,22 @@
+// 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"
+)
+
+// MintOAuthTokenGrantRPC implements TokenMinter.MintOAuthTokenGrant method.
+type MintOAuthTokenGrantRPC struct {
+}
+
+// MintOAuthTokenGrant produces new OAuth token grant.
+func (r *MintOAuthTokenGrantRPC) MintOAuthTokenGrant(c context.Context, req *minter.MintOAuthTokenGrantRequest) (*minter.MintOAuthTokenGrantResponse, error) {
+ return nil, grpc.Errorf(codes.Unavailable, "not implemented")
+}

Powered by Google App Engine
This is Rietveld 408576698