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

Side by Side 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, 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The LUCI Authors. All rights reserved.
2 // Use of this source code is governed under the Apache License, Version 2.0
3 // that can be found in the LICENSE file.
4
5 package serviceaccounts
6
7 import (
8 "golang.org/x/net/context"
9 "google.golang.org/grpc"
10 "google.golang.org/grpc/codes"
11
12 "github.com/luci/luci-go/tokenserver/api/minter/v1"
13 )
14
15 // MintOAuthTokenViaGrantRPC implements TokenMinter.MintOAuthTokenViaGrant
16 // method.
17 type MintOAuthTokenViaGrantRPC struct {
18 }
19
20 // MintOAuthTokenViaGrant produces new OAuth token given a grant.
21 func (r *MintOAuthTokenViaGrantRPC) MintOAuthTokenViaGrant(c context.Context, re q *minter.MintOAuthTokenViaGrantRequest) (*minter.MintOAuthTokenViaGrantResponse , error) {
22 return nil, grpc.Errorf(codes.Unavailable, "not implemented")
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698