move auth interceptor into serverinterceptors

master
kevin 4 years ago
parent 89019a0b72
commit 95226762ba

@ -1,4 +1,4 @@
package internal
package serverinterceptors
import (
"context"

@ -117,8 +117,8 @@ func setupInterceptors(server internal.Server, c RpcServerConf, metrics *stat.Me
return err
}
server.AddStreamInterceptors(internal.StreamAuthorizeInterceptor(authenticator))
server.AddUnaryInterceptors(internal.UnaryAuthorizeInterceptor(authenticator))
server.AddStreamInterceptors(serverinterceptors.StreamAuthorizeInterceptor(authenticator))
server.AddUnaryInterceptors(serverinterceptors.UnaryAuthorizeInterceptor(authenticator))
}
return nil

Loading…
Cancel
Save