Issue
In the AuthAnvil Manager, clicking the button for "Single Sign On" displays the following error when viewing the Manager from directly on the server:
Server Error in '/AuthAnvil/Manager' Application. Exception of type 'ScorpionSoft.IdentityServer.Implementation.Exceptions.SessionNotFoundException' was thrown.
Cause
The SSO module is looking for a session under a certain IP address, as defined in the SSO Admin Service endpoint address in the Manager web.config file. When you log into the Manager, the admin web service in the AuthAnvilSAS web.config file has a different IP that it used to create the session. This usually means that the base URLs between the 2 files do not match.
Resolution
Open the file at C:\Program Files\Scorpion Software\AuthAnvil\AuthAnvilSAS\web.config and look for the following lines:
<add key="SASWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/SAS.asmx" />
<add key="SecondarySASWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/SAS.asmx" />
<add key="AdminWebReferenceURL" value="http://<your 2FA server>/AuthAnvil/Admin/Admin.asmx" />
All of these should have the same base URL related to your own server, for example: "demo.scorpionsoft.com" or "CompanyDC01". Copy this base URL to your clipboard. Now open the file at C:\Program Files\Scorpion Software\AuthAnvil\AuthAnvilSAS\Manager\web.config and look for the following lines:
Here we have "localhost" as the base URL. This will resolve to either 127.0.0.1 (IPv4) or ::1 (IPv6) whereas "demo.scorpionsoft.com" might resolve to an external IP.
<endpoint address="http://localhost/SSO/Services/Admin.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_AdminService" contract="SsoAdminService.AdminService" name="BasicHttpBinding_AdminService"/> <endpoint address="http://localhost/AuthAnvil/admin/Admin.asmx" binding="basicHttpBinding" bindingConfiguration="AdminSoap" contract="AdminWebService.AdminSoap" name="AdminSoap"/>
Simply update the Manager\web.config file to use the same base URL you have in your AuthAnvilSAS\web.config and they should both be resolving the same way. In our case, the new lines look like this:
<endpoint address="http://demo.scorpionsoft.com/SSO/Services/Admin.svc" binding="basicHttpBinding" bindingConfiguration="BasicHttpBinding_AdminService" contract="SsoAdminService.AdminService" name="BasicHttpBinding_AdminService"/> <endpoint address="http://demo.scorpionsoft.com/AuthAnvil/admin/Admin.asmx" binding="basicHttpBinding" bindingConfiguration="AdminSoap" contract="AdminWebService.AdminSoap" name="AdminSoap"/>
Affects
AuthAnvil Single Sign On v3.0 or later on AuthAnvil Two Factor Auth v4.6 or later
Questions?
If you have any questions or need some help, we would be happy to assist. Open a case at help.scorpionsoft.com or send an email to support@scorpionsoft.com.