mirror of
https://github.com/golang/oauth2.git
synced 2025-07-21 00:00:09 +08:00
ComputeEngineConfig should implement TokenFetcher.
This commit is contained in:
parent
13179d7d8a
commit
904252a9e8
@ -146,3 +146,10 @@ func (c *ComputeEngineConfig) FetchToken(existing *oauth2.Token) (token *oauth2.
|
|||||||
}
|
}
|
||||||
return
|
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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user