Hi @Gangarde, Sachin , the "state" parameter is required in the logout URL to prevent cross-site request forgery (CSRF) attacks. It is used to maintain state between the client and the server. However, if the query string is too long, you can try to shorten it by removing unnecessary parameters or by compressing the state parameter.
One way to compress the state parameter is to use a compression algorithm like gzip or deflate. You can compress the state parameter on the server-side before sending it to the client, and then decompress it on the client-side before using it.
Another way to shorten the state parameter is to use a shorter value for the "nonce" parameter. The nonce parameter is used to prevent replay attacks and is included in the state parameter. By default, the nonce parameter is a 32-byte random string. You can reduce the length of the nonce parameter to 16 bytes or less to shorten the state parameter.
You can also try to remove unnecessary parameters from the state parameter. For example, if you are using the "prompt" parameter in the login URL, you can remove it from the logout URL since it is not needed.
In your case, you can try to remove the "contextIPAddress" output claim from the TechnicalProfile to see if it helps to shorten the state parameter. If you still need the "contextIPAddress" output claim, you can try to compress the state parameter or use a shorter value for the nonce parameter.
There's also this thread with some more information.
Please let me know if you have any questions and I can help you further.
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James