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?
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 theByteBuffer
has fixed size and the content is too long. See: https://stackoverflow.com/questions/50352739/tomcat-websocket-bufferoverflowexceptionDid 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?