Check for the values in audienceuris field of the file NX_ROOT/bopcfg/www/CATALINA_BASE/shared/resources/federation.properties
Ensure that the Endpoint definition of the Relying Party Trust from the ADFS is one of the audienceuris values in this file
If the Endpoint is value is https://company.com/CAisd/pdmweb.exe but federation.properties has https://company.com:443/CAisd/pdmweb.exe , as the URI is not a full match, the error noted above is seen:
com.auth10.federation.FederationException: The token applies to an untrusted audience: https://company.com:443/CAisd/pdmweb.exe
Once https://company.com/CAisd/pdmweb.exe is added as one of the additional audienceuris values in federation.properties, restart SDM Tomcat to resolve the issue.