AD FS may produce “An error occurred” page when logging in or performing Test Connection

AD FS may produce “An error occurred” page when logging in or performing Test Connection

Problem: AD FS may produce “An error occurred” page when logging in or performing Test Connection



Symptom: you may find an error like this in the Windows Event Logs for AD FS on the AD FS server:

Microsoft.IdentityServer.Web.InvalidScopeException: MSIS7007: The requested relying party trust 'https://172.31.46.208/remote_auth/metadata' is unspecified or unsupported. If a relying party trust was specified, it is possible that you do not have permission to access the trust relying party. Contact your administrator for details.

 

Solution:  In CPM under General Settings > Identity Provider you’ll want to ensure that the CPM IP or DNS is set to match the CPM_ADDRESS in this example image in AD FS:


Field in CPM > General Settings > Identity Provider :