<?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: SOE/SOI - User name is empty even after login in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/1324688#M20600</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;7 years have passed since then&lt;BR /&gt;Tested on version 10.9.1 Full-Patched&lt;BR /&gt;Tested on version 11.1 Full-Patched&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Still in Feature access return null for&amp;nbsp; UserInfo.Name from&amp;nbsp; ServerUtilities.GetServerEnvironment();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 01 Sep 2023 12:43:08 GMT</pubDate>
    <dc:creator>Dvirus</dc:creator>
    <dc:date>2023-09-01T12:43:08Z</dc:date>
    <item>
      <title>SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512568#M13815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I was exploring LayerAccessSOI java sample.&lt;/P&gt;&lt;P&gt;Attached the LayerAccessSOI to SampleWorldCities map service, when accessed the map service in ArcGIS REST Services Directory...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Before Login - "Layers" section was not showing any layers, this is the correct behaviour.&lt;/P&gt;&lt;P&gt;After Login - "Layers" section was still not showing any (authorized) layers, seems there is something wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I DEBUG the SOI for "After Login" scenario the "userName" is getting empty for the below lines of code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IServerUserInfo userInfo = ServerUtilities.getServerUserInfo();&lt;/P&gt;&lt;P&gt;String userName = userInfo.getName();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer to the attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did any body experienced this? Can help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit:&lt;/P&gt;&lt;P&gt;- I checked the LayerAccessSOI .Net sample, it has no issues.&lt;/P&gt;&lt;P&gt;- For .Net, every page refresh on the map service rest directory was triggering handleRESTRequest method. But it's not the case with Java sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 09 Aug 2015 08:33:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512568#M13815</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2015-08-09T08:33:50Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512569#M13816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN&gt;Implementing layer-level access control &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;If you implement layer level-access control through an SOI, you'll also need to configure ArcGIS Server's REST handler to disable caching of all layer resources included the service. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;This will allow you to intercept operations and filter out layers which are not allowed. You can disable this by setting the service's disableCaching property to true in the ArcGIS Server Administrator Directory. &lt;/SPAN&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;SPAN&gt;Open the ArcGIS Server Administrator Directory and sign in. &lt;/SPAN&gt;&lt;SPAN&gt;The URL is typically formatted &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://community.esri.com/external-link.jspa?url=http://gisserver.domain.com:6080/arcgis/admin" rel="nofollow" target="_blank"&gt;http://gisserver.domain.com:6080/arcgis/admin&lt;/A&gt;&lt;SPAN&gt;.. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Click services and click the name of the desired service. If you don't see it in the list, it may be located within a folder in this directory.. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Click edit.. &lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;In the properties section of the service JSON, add the disableCaching property and set its value to true, for example: "properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... }&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Click Save Edits..&lt;/SPAN&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;when you are in "after login" you are sure to be in the right trigger because&amp;nbsp; every request passes there handleRESTRequest no matter what you are doing&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Aug 2015 19:36:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512569#M13816</guid>
      <dc:creator>nicogis</dc:creator>
      <dc:date>2015-08-13T19:36:31Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512570#M13817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="replyToName"&gt;Domenico,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your reply.&lt;/P&gt;&lt;P&gt;As mentioned under "EDIT" in my question, the .Net LayerAccessSOI sample working as expected, but the issue is only with Java LayerAccessSOI sample.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Aug 2015 07:07:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512570#M13817</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2015-08-14T07:07:43Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512571#M13818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;After doing the below, Java sample also working as expected. Thank you &lt;SPAN class="replyToName"&gt;Domenico.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In the properties section of the service JSON, add the disableCaching property and set its value to true, for example: "properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... }&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Note: Without doing the above, .Net sample was working fine.&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Aug 2015 09:23:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512571#M13818</guid>
      <dc:creator>Ranga_Tolapi</dc:creator>
      <dc:date>2015-08-17T09:23:55Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512572#M13819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;With dotnet sample also we got the same issue. Upon setting &lt;STRONG&gt;"properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... } ,&lt;/STRONG&gt;mapservice rest URLS work fine. While debugging the SOI code, we can see the logged in user id is getting passed to SOI. But the same does not hold true for FeatureServer and KMLServer URL. When intercepted in SOI the user ID is always NULL. We tried to apply &lt;STRONG&gt;"properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... } &lt;/STRONG&gt;on all capabilities one by one but to no use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Understand that Layer Level access control works on Mapserver along with all capabilities (e.g. Feature Access, KMLServer and OGC services). Please correct me if I am wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Sep 2016 04:53:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512572#M13819</guid>
      <dc:creator>Pankajroy</dc:creator>
      <dc:date>2016-09-22T04:53:45Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512573#M13820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Domenico,&lt;/P&gt;&lt;P&gt;With dotnet sample also we got the same issue. Upon setting &lt;STRONG&gt;"properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... } ,&lt;/STRONG&gt;mapservice rest URLS work fine. While debugging the SOI code, we can see the logged in user id is getting passed to SOI. But the same does not hold true for FeatureServer and KMLServer URL. When intercepted in SOI the user ID is always NULL. We tried to apply &lt;STRONG&gt;"properties": {&amp;nbsp; ...&amp;nbsp; "disableCaching": "true",&amp;nbsp; ... } &lt;/STRONG&gt;on all capabilities one by one but to no use.&lt;/P&gt;&lt;P style="padding: 0px; min-height: 8pt;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Understand that Layer Level access control works on Mapserver along with all capabilities (e.g. Feature Access, KMLServer and OGC services). Please correct me if I am wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Pankaj Roy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2016 04:46:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512573#M13820</guid>
      <dc:creator>Pankajroy</dc:creator>
      <dc:date>2016-09-23T04:46:42Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512574#M13821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;ESRI Inc. has acknowledged that SOI&amp;nbsp;is currently limited to dynamic map service&amp;nbsp;along with WMS capability only.&amp;nbsp;It does not work for&amp;nbsp;Feature access, WFS and KML&amp;nbsp;services.&amp;nbsp;They will very soon reflect this limitation in their documentation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Oct 2016 11:53:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/512574#M13821</guid>
      <dc:creator>Pankajroy</dc:creator>
      <dc:date>2016-10-08T11:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: SOE/SOI - User name is empty even after login</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/1324688#M20600</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hi,&lt;BR /&gt;7 years have passed since then&lt;BR /&gt;Tested on version 10.9.1 Full-Patched&lt;BR /&gt;Tested on version 11.1 Full-Patched&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Still in Feature access return null for&amp;nbsp; UserInfo.Name from&amp;nbsp; ServerUtilities.GetServerEnvironment();&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 01 Sep 2023 12:43:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/soe-soi-user-name-is-empty-even-after-login/m-p/1324688#M20600</guid>
      <dc:creator>Dvirus</dc:creator>
      <dc:date>2023-09-01T12:43:08Z</dc:date>
    </item>
  </channel>
</rss>

