<?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: Get User from MapService Login in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474120#M43953</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From this OAuth sample: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html" title="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html"&gt;OAuth Basic | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable "&lt;SPAN class=""&gt;portalUser"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt; contains the "userName" property. You can examine all the properties by opening up the developer tools in your browser and put a breakpoint at line 118.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345314_pastedImage_2.png" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Apr 2017 16:46:29 GMT</pubDate>
    <dc:creator>KenBuja</dc:creator>
    <dc:date>2017-04-04T16:46:29Z</dc:date>
    <item>
      <title>Get User from MapService Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474118#M43951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is there a way to capture the User Name when the user is prompted to add their credentials for a secured service? &amp;nbsp;I want to write the user name to a variable in Javascript&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:17:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474118#M43951</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2017-04-04T16:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Get User from MapService Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474119#M43952</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;The help docs are your friend:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jsapi/identitymanager-amd.html" title="https://developers.arcgis.com/javascript/3/jsapi/identitymanager-amd.html"&gt;IdentityManager | API Reference | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;IdentityManager.credentials[0].userId&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:41:43 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474119#M43952</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-04T16:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Get User from MapService Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474120#M43953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From this OAuth sample: &lt;A class="link-titled" href="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html" title="https://developers.arcgis.com/javascript/3/jssamples/portal_oauth_inline.html"&gt;OAuth Basic | ArcGIS API for JavaScript 3.20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variable "&lt;SPAN class=""&gt;portalUser"&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt; contains the "userName" property. You can examine all the properties by opening up the developer tools in your browser and put a breakpoint at line 118.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/345314_pastedImage_2.png" style="width: 620px; height: 370px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 16:46:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474120#M43953</guid>
      <dc:creator>KenBuja</dc:creator>
      <dc:date>2017-04-04T16:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Get User from MapService Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474121#M43954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Bit confused here and want to make sure we are on the same page.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a simple Javascript app that I wrote. &amp;nbsp;Nothing is pointing to to ArcGIS online, but rather one of my own Map Services which prompts the user for credentials. &amp;nbsp;When they enter those and the app opens I want to write UserName to a variable.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 17:32:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474121#M43954</guid>
      <dc:creator>jaykapalczynski</dc:creator>
      <dc:date>2017-04-04T17:32:46Z</dc:date>
    </item>
    <item>
      <title>Re: Get User from MapService Login</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474122#M43955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; That is what the line of code and like I provided are for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Apr 2017 17:47:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/get-user-from-mapservice-login/m-p/474122#M43955</guid>
      <dc:creator>RobertScheitlin__GISP</dc:creator>
      <dc:date>2017-04-04T17:47:25Z</dc:date>
    </item>
  </channel>
</rss>

