<div dir="ltr"><span style="font-size:12.8000001907349px">I am also having issues with the AudienceRestriction and have read through this thread (</span><a href="http://shibboleth.net/pipermail/users/2012-September/005975.html" target="_blank" style="font-size:12.8000001907349px">http://shibboleth.net/pipermail/users/2012-September/005975.html</a><span style="font-size:12.8000001907349px">)  and and still having issues.</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Apache Config</div><div style="font-size:12.8000001907349px"><div><VirtualHost *:443></div><div> ServerName <a href="http://myserver.com/" target="_blank">myserver.com</a></div><div> ProxyRequests Off</div><div> UseCanonicalName On</div><div> UseCanonicalPhysicalPort On</div><div> SSLEngine on</div><div> SSLProtocol ALL -SSLv2</div><div> SSLCertificateFile /etc/pki/tls/certs/myserver.crt</div><div> SSLCertificateKeyFile /etc/pki/tls/private/myserver.key</div><div> ShibCompatValidUser On</div><div><br></div><div> <Location /Shibboleth.sso></div><div>   AuthType None</div><div>   Require all granted</div><div> </Location></div><div><br></div><div> <IfModule mod_alias.c></div><div>   <Location /shibboleth-sp></div><div>     AuthType None</div><div>     Require all granted</div><div>   </Location></div><div>   Alias /shibboleth-sp/main.css /usr/share/shibboleth/main.css</div><div> </IfModule></div><div> <Location /Shibboleth.sso></div><div>   SetHandler shib</div><div> </Location></div><div> <Location /></div><div>    AuthType shibboleth</div><div>    Require shib-session</div><div>    ShibBasicHijack on</div><div>    ShibRequestSetting requireSession 1</div><div>    ShibRequestSetting applicationId default</div><div>    Require valid-user</div><div> </Location></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Changed sections of shibboleth.xml</div><div style="font-size:12.8000001907349px"><div> <ApplicationDefaults entityID="<a href="https://myserver.com/" target="_blank">https://myserver.com/</a>"</div><div>                         REMOTE_USER="eppn persistent-id targeted-id"></div></div><div style="font-size:12.8000001907349px"><div> <SSO entityID="<a href="http://www.okta.com/oktaid123454" target="_blank">http://www.okta.com/oktaid123454</a>"></div><div>              SAML2 SAML1</div><div> </SSO></div></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Okta Side</div><div style="font-size:12.8000001907349px">SSO URL: <a href="https://myserver.com/Shibboleth.sso/SAML2/POST" target="_blank">https://myserver.com/Shibboleth.sso/SAML2/POST</a></div><div style="font-size:12.8000001907349px">Audience URI: <a href="https://myserver.com/" target="_blank">https://myserver.com/</a></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Everytime I access <a href="http://myserver.com/" target="_blank">myserver.com</a> I get redirected to the idP (Okta) auth happens correctly and redirects me to the SSO URL at which point the SP errors with </div><div style="font-size:12.8000001907349px"><p>opensaml::FatalProfileException at (<a href="https://myserver.com/Shibboleth.sso/SAML2/POST" target="_blank">https://myserver.com/Shibboleth.sso/SAML2/POST</a>)</p><p>Assertion contains an unacceptable AudienceRestriction.</p><p>and the native.log contains</p><p>2015-08-13 09:08:51 ERROR Shibboleth.Listener [28218] shib_check_user: remoted message returned an error: Assertion contains an unacceptable AudienceRestriction.</p><p>2015-08-13 09:08:51 ERROR Shibboleth.Apache [28218] shib_check_user: Assertion contains an unacceptable AudienceRestriction.</p></div><div style="font-size:12.8000001907349px">Any advice on where I messed this up / how to fix?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Thanks</div><div class="yj6qo ajU" style="font-size:12.8000001907349px"><div id=":2jq" class="ajR" tabindex="0"><img class="ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div><span class="HOEnZb adL" style="font-size:12.8000001907349px"><font color="#888888">-Scott</font></span></div>