Counterpart to https://vanadium-review.googlesource.com/16427
MultiPart: 4/6
Change-Id: If457c52f261f242be345ed3df2b722a981cdad05
diff --git a/go/src/v.io/x/lock/lock/main.go b/go/src/v.io/x/lock/lock/main.go
index 8bbe90f..69bceed 100644
--- a/go/src/v.io/x/lock/lock/main.go
+++ b/go/src/v.io/x/lock/lock/main.go
@@ -243,7 +243,10 @@
// TODO(ataly): We should not skip server endpoint authorization while
// claiming locks but instead fetch the blessing root of the lock manufacturer
// from an authoritative source and then appropriately authenticate the server.
- b, err := lock.UnclaimedLockClient(lockObjName(lockName)).Claim(ctx, name, options.SkipServerEndpointAuthorization{})
+ b, err := lock.UnclaimedLockClient(lockObjName(lockName)).Claim(
+ ctx,
+ name,
+ options.ServerAuthorizer{security.AllowEveryone()})
if err != nil {
return err
}