mirror of https://github.com/grpc/grpc-go.git
credentials/oauth: default to Bearer token type
This commit is contained in:
parent
69420784d4
commit
d32f94c75e
|
@ -57,7 +57,7 @@ func (ts TokenSource) GetRequestMetadata(ctx context.Context, uri ...string) (ma
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
return map[string]string{
|
return map[string]string{
|
||||||
"authorization": token.TokenType + " " + token.AccessToken,
|
"authorization": token.Type() + " " + token.AccessToken,
|
||||||
}, nil
|
}, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue