Suppress auth errors (#329)
This commit is contained in:
@@ -30,9 +30,8 @@ class AuthInterceptor(
|
|||||||
|
|
||||||
if (isOrdinaryMethod && (sessionId == null || !authContext.containsSession(sessionId))) {
|
if (isOrdinaryMethod && (sessionId == null || !authContext.containsSession(sessionId))) {
|
||||||
val cause = if (sessionId == null) "sessionId is not passed" else "Session $sessionId does not exist"
|
val cause = if (sessionId == null) "sessionId is not passed" else "Session $sessionId does not exist"
|
||||||
throw Status.UNAUTHENTICATED
|
call.close(Status.UNAUTHENTICATED.withDescription(cause), Metadata())
|
||||||
.withDescription(cause)
|
return object : ServerCall.Listener<ReqT>() {}
|
||||||
.asException()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return next.startCall(call, headers)
|
return next.startCall(call, headers)
|
||||||
|
|||||||
Reference in New Issue
Block a user