Verbose Logging - SAML

How to enable verbose logging to troubleshoot SAML?

  1. On the server where Orchestrator is installed, edit the Web.Config with a text editor
  2. 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>
  1. 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 
  2. Browse the Orchestrator site. Once you see the login screen, click SAML to attempt to authenticate. 
  3. A file should now be visible within the Orchestrator directory called WebAppOwin.log. Review or ask SAML SME for further assistance
  4. Once the issue has been identified, remove the above additions from the Web.Config .

A post was split to a new topic: How to enable verbose logging to troubleshoot SAML?