<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Accessing Windows authenticated service returns 401 error after restarting browser in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152435#M6214</link>
    <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;When first accessing a secured service from web application, a windows login dialog is displayed (expected behavior)&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In my experience, this isn't the expected behavior. The only way I could trigger this would be in an incognito window from Chrome or edge.&amp;nbsp;&lt;BR /&gt;But my experience is based on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server (with Webadaptor) is joined to an Active Directory&lt;/LI&gt;&lt;LI&gt;Clients (users) are joined to the same Active Directory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With that in place, the users are authenticated automatically based on a Kerberos Ticket and don't have to enter their username and password when they access a resource via the webadapter. This works well with Edge, Chrome and of course IE, Firefox might need some additional settings to get this working.&lt;/P&gt;&lt;P&gt;Are you using AD as well in your case?&lt;/P&gt;</description>
    <pubDate>Thu, 10 Mar 2022 07:02:19 GMT</pubDate>
    <dc:creator>JoëlHempenius3</dc:creator>
    <dc:date>2022-03-10T07:02:19Z</dc:date>
    <item>
      <title>Accessing Windows authenticated service returns 401 error after restarting browser</title>
      <link>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152203#M6211</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;Using arcgis server webadaptor 10.7&lt;BR /&gt;Windows authentication is configured as instructed in documantations.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_49.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35956i934643E7EA34D80B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_49.png" alt="Screenshot_49.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_50.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35957i7681420B61CC5D11/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_50.png" alt="Screenshot_50.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; When first accessing a secured service from web application, a windows login dialog is displayed (expected behavior) :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_51.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35958i266BA8EA1E40D6EB/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_51.png" alt="Screenshot_51.png" /&gt;&lt;/span&gt;&lt;BR /&gt;* the netowrk request while windows dialog invoked&lt;/P&gt;&lt;P&gt; Once credentials are entered, user is authorized and is able to access the service (as expected):&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_52.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35961iD366159C8BD5F75F/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_52.png" alt="Screenshot_52.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; *The validated reponse headers after credentilas are validated&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_55.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35964iD1080CF241B48170/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_55.png" alt="Screenshot_55.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; * The validated request haeders&amp;nbsp;after credentilas are validated&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;The problem is when we close the browser (chrome&amp;nbsp;&lt;SPAN&gt;Version 99.0.4844.51) and reopen it, trying to access the same service results with a 401 error in the network, and cors error in the console log:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_53.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35960iB4FAF81AA8E756F4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_53.png" alt="Screenshot_53.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Screenshot_54.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/35963i275191D951717A3B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Screenshot_54.png" alt="Screenshot_54.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;The expected results should be -&amp;nbsp;&lt;BR /&gt;&amp;nbsp;Either the server remebers valid credentials and authorize accsess service, or invoke login dialog.&lt;BR /&gt;&amp;nbsp;The currnet behvior is none of the above. The only way to invoke Windows login dialog is by hard-reload the browser (dev-tools must be open for that), or directly load the requested service in another browser tab and re-enter credentials in the Windows login dialog that is invoked there.&lt;BR /&gt;Please help. Are we missing something? Is this a known issue?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Mar 2022 16:23:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152203#M6211</guid>
      <dc:creator>YoavLeshem</dc:creator>
      <dc:date>2022-03-09T16:23:26Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Windows authenticated service returns 401 error after restarting browser</title>
      <link>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152435#M6214</link>
      <description>&lt;P&gt;&lt;EM&gt;&lt;SPAN&gt;When first accessing a secured service from web application, a windows login dialog is displayed (expected behavior)&amp;nbsp;&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;In my experience, this isn't the expected behavior. The only way I could trigger this would be in an incognito window from Chrome or edge.&amp;nbsp;&lt;BR /&gt;But my experience is based on:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Server (with Webadaptor) is joined to an Active Directory&lt;/LI&gt;&lt;LI&gt;Clients (users) are joined to the same Active Directory&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;With that in place, the users are authenticated automatically based on a Kerberos Ticket and don't have to enter their username and password when they access a resource via the webadapter. This works well with Edge, Chrome and of course IE, Firefox might need some additional settings to get this working.&lt;/P&gt;&lt;P&gt;Are you using AD as well in your case?&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:02:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152435#M6214</guid>
      <dc:creator>JoëlHempenius3</dc:creator>
      <dc:date>2022-03-10T07:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Windows authenticated service returns 401 error after restarting browser</title>
      <link>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152448#M6215</link>
      <description>&lt;P&gt;Hi.&lt;BR /&gt;I am using Active Directory.&lt;BR /&gt;I would expect an SSO behavior as you described, but we can accept login dialog behavior for initial use.&lt;BR /&gt;A more serious problem for us is the inconsistent behavior forcing the user to perform hard reload or access the service's URL directly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 07:58:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1152448#M6215</guid>
      <dc:creator>YoavLeshem</dc:creator>
      <dc:date>2022-03-10T07:58:32Z</dc:date>
    </item>
    <item>
      <title>Re: Accessing Windows authenticated service returns 401 error after restarting browser</title>
      <link>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1172392#M6256</link>
      <description>&lt;P&gt;For future generations:&lt;BR /&gt;We managed to overcome this issue.&lt;BR /&gt;Apperantly, we had a service worker in our app which cahced the request above with invalid credentials.&lt;BR /&gt;Our problem was solved by unregistrating that Service worker.&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 10 May 2022 13:17:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/accessing-windows-authenticated-service-returns/m-p/1172392#M6256</guid>
      <dc:creator>YoavLeshem</dc:creator>
      <dc:date>2022-05-10T13:17:31Z</dc:date>
    </item>
  </channel>
</rss>

