package com.usoft.credit.grpc.interceptor;

import io.grpc.Metadata;
import io.grpc.ServerCall;
import io.grpc.ServerCallHandler;
import io.grpc.ServerInterceptor;
import org.lognet.springboot.grpc.GRpcGlobalInterceptor;

/**
 * 全局 user 认证拦截器
 * @author liuam
 * @since 2018/8/9 0009 下午 16:18
 */
@GRpcGlobalInterceptor
public class AuthorizeInterceptor implements ServerInterceptor {


    public <ReqT, RespT> ServerCall.Listener<ReqT> interceptCall(ServerCall<ReqT, RespT> call, Metadata headers, ServerCallHandler<ReqT, RespT> next) {
        
        return next.startCall(call, headers);
    }
}
