credentials/oauth: default to Bearer token type

This commit is contained in:
Chris Broadfoot 2016-06-24 10:39:34 -07:00
parent 69420784d4
commit d32f94c75e
1 changed files with 1 additions and 1 deletions

View File

@ -57,7 +57,7 @@ func (ts TokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (ma
return nil, err
}
return map[string]string{
"authorization": token.TokenType + " " + token.AccessToken,
"authorization": token.Type() + " " + token.AccessToken,
}, nil
}