mthizo247 / spring-cloud-netflix-zuul-websocket

Zuul reverse proxy web socket support
Apache License 2.0
139 stars 72 forks source link

Barrer token in OAuth2BearerPrincipalHeadersCallback exceeds the buffer limit in Tomcat during CONNECT #14

Open akosbordas opened 6 years ago

akosbordas commented 6 years ago

We have tried to use this library with OAuth2 authentication. The OAuth2BearerPrincipalHeadersCallback puts the token correctly to the header, but when we try to use it on a Tomcat server it fails because the ByteBuffer has fixed size and the content is too long. See: https://stackoverflow.com/questions/50352739/tomcat-websocket-bufferoverflowexception

Did you try it with Tomcat server or something else? Have you faced with similar issue? Is there any way to decrease the size of the token or use cookies instead?