mirror of
https://github.com/zeromicro/go-zero.git
synced 2026-05-11 00:40:00 +08:00
move auth interceptor into serverinterceptors
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user