separate auth info from normal metadata

This commit is contained in:
iamqizhao
2015-08-26 11:30:43 -07:00
parent b8c2d492b4
commit 125950284c
6 changed files with 71 additions and 58 deletions

View File

@ -199,7 +199,7 @@ func (s *Server) Serve(lis net.Listener) error {
if err != nil {
return err
}
var authInfo map[string][]string
var authInfo credentials.AuthInfo
if creds, ok := s.opts.creds.(credentials.TransportAuthenticator); ok {
c, authInfo, err = creds.ServerHandshake(c)
if err != nil {