forked from Mirrors/oauth2
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…
Reference in New Issue