detouched
07/15/2019, 2:10 AMApplicationReceivePipeline.Before
– this kinda works, but in case of invalid signature after I send 401 back and call finish()
I still get CannotTransformContentToTypeException
in the related target route. I understand that it's what triggers receive pipeline, so this setup is obviously wrong. Seeking for the right solution, appreciate any help.avolkmann
07/15/2019, 5:22 PMdetouched
07/16/2019, 4:07 AMproceedWith
a recreated ByteReadChannel
so that it is not considered transformed and JSON deserializers can kick in.
Another interceptor of ApplicationCallPipeline
is catching that exception and responding with a proper 401