Enabling the RelayState parameter for IdP-initiated sign-on (Self Service Portal only)
RelayState
parameter for IdP-initiated sign-on (Self Service Portal only)If configuring an IdP for the Self Service Portal, complete the following steps to enable the
RelayState
parameter for IdP initiated sign-on:- In a standard text editor, open the appropriate configuration file:
- On Microsoft Windows 2008 R2 Server platforms, open theweb.configfile. This file is typically located atC:\inetpub\adfs\ls\
- On Microsoft Windows 2012 and 2012 R2 Server platforms, open theMicrosoft.IdentityServer.Servicehost.exe.configfile. This file is typically located atC:\Windows\ADFS\
- Add the following entry between<microsoft.identityServer.web>and</microsoft.identityServer.web>:<useRelayStateForIdpInitiatedSignOn enabled="true" />
- Save the configuration file.
- In AD FS for Windows 2106 Server and Windows 2019 Server, run the following command in PowerShell:Set-AdfsProperties -EnableRelayStateForIdpInitiatedSignOn $true