A custom agent is created using the SDK. The custom agent is using SecureURLs=yes. When the custom agent redirects the user to an out of the box agent for authentication, the out of the box agent throws the following error:
Failed to Decrypt Query StringAll
The query string was properly URL-encoded, but the -SM- tag was not added to the beginning of the query string value.
Custom agents must prepend the encrypted query string with -SM- after URL-encoding the string. A proper request would look something like this:
https://host.example.com/siteminderagent/forms/login.fcc?SMQUERYDATA=-SM-kjN6HwPAXjPfMrY69uSFZk3wXdxy3snLstjvsqbFEcGdEvmKYGRSj1x%2fUigzF11...
If the web agents use LegacyEncoding=Yes, then use the $SM$ tag rather than the -SM- tag.