Merge "Use new allowEveryoneAuthorizer instead of defining openAuthorizer ourselves."
diff --git a/clients/shell/go/src/v.io/x/chat/channel.go b/clients/shell/go/src/v.io/x/chat/channel.go
index aed6b4e..f376ba4 100644
--- a/clients/shell/go/src/v.io/x/chat/channel.go
+++ b/clients/shell/go/src/v.io/x/chat/channel.go
@@ -133,13 +133,6 @@
}, nil
}
-// openAuthorizer allows RPCs from all clients.
-type openAuthorizer struct{}
-
-func (o openAuthorizer) Authorize(*context.T, security.Call) error {
- return nil
-}
-
// UserName returns a short, human-friendly representation of the chat client.
func (cr *channel) UserName() string {
// TODO(ashankar): It is wrong to assume that
@@ -226,7 +219,7 @@
// Serve the chat server on the locked name.
serverChat := vdl.ChatServer(cr.chatServerMethods)
- if err := s.Serve(name, serverChat, openAuthorizer{}); err != nil {
+ if err := s.Serve(name, serverChat, security.AllowEveryone()); err != nil {
return err
}