forked from Mirrors/oauth2
Trying to fix authorship CLA issues.
Change-Id: I80d6785fd0e1e4f69c5e47d4ab9012ef5575333c
This commit is contained in:
parent
63436011f1
commit
0ad52e5ecd
|
@ -27,6 +27,7 @@ type impersonateTokenResponse struct {
|
||||||
ExpireTime string `json:"expireTime"`
|
ExpireTime string `json:"expireTime"`
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// impersonate performs the exchange to get a temporary service account
|
||||||
func (ts tokenSource) impersonate() (*oauth2.Token, error) {
|
func (ts tokenSource) impersonate() (*oauth2.Token, error) {
|
||||||
reqBody := generateAccessTokenReq{
|
reqBody := generateAccessTokenReq{
|
||||||
Lifetime: "3600s",
|
Lifetime: "3600s",
|
||||||
|
|
Loading…
Reference in New Issue