This sample policy uses the Return Template Response to Requestor assertion and JS script to parse and replace the hash fragment with a query parameter that can be sent back to the server.
This policy is provided as-is without warranty or support of any kind and intended only for guidance in using the assertion.
Nice work Mohindra.Singh.
Good way to work around the limitations of the hash fragment.