oauth2: perform caching ops at the transport level

This commit is contained in:
Burcu Dogan
2014-06-17 16:09:09 +02:00
parent 5c1195ac3f
commit 4337573be3
4 changed files with 16 additions and 36 deletions

View File

@@ -146,10 +146,3 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2.
}
return
}
// Cache returns nil. On Google Compute Engine, access tokens are
// retrieved from the metaserver, no other persistence layer is
// required.
func (c *ComputeEngineConfig) Cache() oauth2.Cache {
return nil
}