// NewTransport returns a transport that authorizes // the requests with the application's service account. func (c *AppEngineConfig) NewTransport() *oauth2.Transport { if c.Transport != nil { return oauth2.NewTransport(c.Transport, c, nil) } transport := &urlfetch.Transport{ Context: c.context, Deadline: 0, AllowInvalidServerCertificate: false, } return oauth2.NewTransport(transport, c, nil) }
// NewTransport returns a transport that authorizes // the requests with the application's service account. func (c *AppEngineConfig) NewTransport() *oauth2.Transport { return oauth2.NewTransport(c.transport(), c, nil) }
// NewTransport creates an authorized transport. func (c *ComputeEngineConfig) NewTransport() *oauth2.Transport { return oauth2.NewTransport(http.DefaultTransport, c, nil) }