This commit is contained in:
iamqizhao
2015-08-28 17:08:48 -07:00
parent 6be470f058
commit ca129f5e97

View File

@ -67,7 +67,6 @@ func (ts TokenSource) RequireTransportSecurity() bool {
type jwtAccess struct { type jwtAccess struct {
jsonKey []byte jsonKey []byte
//ts oauth2.TokenSource
} }
func NewJWTAccessFromFile(keyFile string) (credentials.Credentials, error) { func NewJWTAccessFromFile(keyFile string) (credentials.Credentials, error) {
@ -79,7 +78,7 @@ func NewJWTAccessFromFile(keyFile string) (credentials.Credentials, error) {
} }
func NewJWTAccessFromKey(jsonKey []byte) (credentials.Credentials, error) { func NewJWTAccessFromKey(jsonKey []byte) (credentials.Credentials, error) {
return jwtAccess{ jsonKey }, nil return jwtAccess{jsonKey}, nil
} }
func (j jwtAccess) GetRequestMetadata(ctx context.Context, audience ...string) (map[string]string, error) { func (j jwtAccess) GetRequestMetadata(ctx context.Context, audience ...string) (map[string]string, error) {