Skip to content

Commit

Permalink
added server request params in filter
Browse files Browse the repository at this point in the history
  • Loading branch information
ajay-jalgaonkar committed Jun 21, 2024
1 parent 446e441 commit 4f7622c
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import javax.inject.Named;

import com.flipkart.gjex.core.filter.Filter;
import com.flipkart.gjex.core.filter.ServerRequestParams;
import com.flipkart.gjex.core.logging.Logging;

import io.grpc.Metadata;
Expand All @@ -44,7 +45,7 @@ public class AuthFilter implements Filter<HelloRequest, HelloReply>, Logging {
private final boolean isAuth = false;

@Override
public void doFilterRequest(Metadata requestHeaders) throws StatusRuntimeException {
public void doFilterRequest(ServerRequestParams serverRequestParams, Metadata requestHeaders) throws StatusRuntimeException {
info("Headers found in the request : " + requestHeaders.toString());
this.checkAuth(requestHeaders);
}
Expand Down

0 comments on commit 4f7622c

Please sign in to comment.