How to enable verbose logging to troubleshoot SAML?
- On the server where Orchestrator is installed, edit the Web.Config with a text editor
- Once that is done, scroll down toward the bottom of the file and after </runtime> paste the following..
<system.diagnostics>
<switches>
<add name="Microsoft.Owin" value="Verbose" />
</switches>
<trace autoflush="true"></trace>
<sharedListeners>
<add name="file" type="System.Diagnostics.TextWriterTraceListener" initializeData="WebAppOwin.log" />
</sharedListeners>
<sources>
<source name="Microsoft.Owin">
<listeners>
<add name="file" />
</listeners>
</source>
</sources>
</system.diagnostics>
<switches>
<add name="Microsoft.Owin" value="Verbose" />
</switches>
<trace autoflush="true"></trace>
<sharedListeners>
<add name="file" type="System.Diagnostics.TextWriterTraceListener" initializeData="WebAppOwin.log" />
</sharedListeners>
<sources>
<source name="Microsoft.Owin">
<listeners>
<add name="file" />
</listeners>
</source>
</sources>
</system.diagnostics>
- Save the file. Once the file is saved, give temporary full control to 'Everyone' on the Orchestrator directory, e.g. C:\Program Files (x86)\UiPath\Orchestrator
- Browse the Orchestrator site. Once you see the login screen, click SAML to attempt to authenticate.
- A file should now be visible within the Orchestrator directory called WebAppOwin.log. Review or ask SAML SME for further assistance
- Once the issue has been identified, remove the above additions from the Web.Config .