Long JWT token giving error

Hello Helical Team,

We have implemented custom SSO using JWT in Helical Insight 4.1 enterprise edition, when we send the large token in the POST/GET request, it is throwing error “request exceeds the maximum limit allowed by the server”

How can we resolve this ?

Hello,

This is happening because of large token size, we can change a setting to make the token data size unlimited .

Make below change in server.xml file located in the below server path

“…\hi\apache-tomcat-9\conf” :

You will see something like :

<Connector port="8085" protocol="HTTP/1.1"

connectionTimeout="20000"

redirectPort="8443" relaxedQueryChars='^{}[]|&quot;' />

In this add 1 more parameter called maxPostSize and assign value as -1 :

<Connector port="8085" protocol="HTTP/1.1"

connectionTimeout="20000"

redirectPort="8443" relaxedQueryChars='^{}[]|&quot;' maxPostSize=”-1” />

After making this change save this server.xml file and restart Tomcat / Helical Insight application service. Once you have done you will not get token size related issues.

Thank You.