ServicePrivileges => ServiceToken
This commit is contained in:
parent
c5e30c0e6e
commit
cd1f6fcdc2
2
grpc.go
2
grpc.go
@ -133,7 +133,7 @@ func (g *grpcClient) call(ctx context.Context, node *registry.Node, req client.R
|
|||||||
|
|
||||||
// if the caller specifies using service privelages, and the client
|
// if the caller specifies using service privelages, and the client
|
||||||
// has auth set, override the authorization header
|
// has auth set, override the authorization header
|
||||||
if opts.ServicePrivileges && g.opts.Auth != nil && g.opts.Auth.Options().Token != nil {
|
if opts.ServiceToken && g.opts.Auth != nil && g.opts.Auth.Options().Token != nil {
|
||||||
t := g.opts.Auth.Options().Token
|
t := g.opts.Auth.Options().Token
|
||||||
header["authorization"] = auth.BearerScheme + t.Token
|
header["authorization"] = auth.BearerScheme + t.Token
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user