<?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: Programing arcgis login online js 4.15 in ArcGIS JavaScript Maps SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62050#M5431</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Very very thanks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The first option I don't know how could do it ..it is like chinese lenguage for my...I just have a standart arcgis online account..I thought it will be more easy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the second option the same problem, my url has token and for creating a permanent token (I don't know if your option goes for these way) the example doesn't give to me how write it in javascript&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generate Token&lt;/P&gt;&lt;P&gt;Example1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;A href="https://www.arcgis.com/sharing/rest/generateToken"&gt;https://www.arcgis.com/sharing/rest/generateToken &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;username=jsmith33 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;password=myPassword &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;referer=https://www.arcgis.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think it will be in request, but where and how....I don`t see this in request information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// request GeoJson data from USGS remote server&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; url = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson"&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;esriRequest(url, { &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;responseType&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"json"&lt;/SPAN&gt;&lt;SPAN&gt; })&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;.then(&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #5c2699;"&gt;response&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// The requested data&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; geoJson = response.data; });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f8f8f8; color: #595959; "&gt;So, How could mix both of them??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I don't want to tire you with my questions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;I will continue using the way that works for me now and I understand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am very grateful for your attention and responses.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;You would understand if you didn't answer me, I'm asking a lot from you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2020 08:10:42 GMT</pubDate>
    <dc:creator>GenasysEsri</dc:creator>
    <dc:date>2020-06-22T08:10:42Z</dc:date>
    <item>
      <title>Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62044#M5425</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried load a customfeatrue layer from my arcgis online account. I did it whitout problems&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However every time and open my script there is an esri-identity-form wich ask for user and password (image I added). So, I would like load my personal layers from arcgis online whitout show or view this form, I mean try other way to loading and authentication or just authentication in background process.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone show me a easy example??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!!!&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/497361_pastedImage_1.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 21 Jun 2020 14:57:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62044#M5425</guid>
      <dc:creator>GenasysEsri</dc:creator>
      <dc:date>2020-06-21T14:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62045#M5426</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, several thoughts come to mind. Possible options are,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the esri proxy, add your login cred to the proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/resource-proxy" title="https://github.com/Esri/resource-proxy"&gt;GitHub - Esri/resource-proxy: Proxy files for DotNet, Java and PHP.&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Second option would be to manage the token yourself. E.g&amp;nbsp;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Get token from rest endpoint&lt;/LI&gt;&lt;LI&gt;Every url request you make, append &amp;amp;token=xxxxx to the url.&lt;/LI&gt;&lt;/UL&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 05:04:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62045#M5426</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-06-22T05:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62046#M5427</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Victor,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your answer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have never manage a resource-proxy, the link you attached talks about DotNet, Java and PHP but I am using Javascript. So, I don't understand very well all what it talks about.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like you see I not have a hight programing level....I was looking for something I can understand, some code or example like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"This code could help you: you user go here, your password in there..."&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks anyway, I keep going study about your answer for finding what I am loking for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 06:22:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62046#M5427</guid>
      <dc:creator>GenasysEsri</dc:creator>
      <dc:date>2020-06-22T06:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62047#M5428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sure. note that the proxy is just another option, without knowing the full context of what you are trying to do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can expand a bit more on the proxy option however it will still require you to read some of the documentation to see if it suits your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A proxy essentially acts as a gateway. What that means is that instead of accessing your service url directly like below which requires authentication:&lt;/P&gt;&lt;PRE style="color: #24292e; background-color: #f6f8fa; margin-bottom: 16px; padding: 16px;"&gt;&lt;CODE style="background: initial; border: 0px;"&gt;http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;if you access it via the proxy, it will manage the token for you. (username and password are stored in the proxy config)&lt;/P&gt;&lt;PRE style="color: #24292e; background-color: #f6f8fa; margin-bottom: 16px; padding: 16px;"&gt;&lt;CODE style="background: initial; border: 0px;"&gt;http://[yourmachine]/DotNet/proxy.ashx?http://services.arcgisonline.com/ArcGIS/rest/services/?f=pjson&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am going to assume you have access to a web server like microsoft windows IIS. Because it is IIS, look&amp;nbsp;in the DotNet part of the resource-proxy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/resource-proxy/tree/master/DotNet" title="https://github.com/Esri/resource-proxy/tree/master/DotNet"&gt;resource-proxy/DotNet at master · Esri/resource-proxy · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Link above provides detail description on how to deploy. Basically it is just copy/paste file, do the config and change your access URL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Proxy configuration:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://github.com/Esri/resource-proxy/blob/master/README.md#proxy-configuration-settings" title="https://github.com/Esri/resource-proxy/blob/master/README.md#proxy-configuration-settings"&gt;resource-proxy/README.md at master · Esri/resource-proxy · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the username and password option&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/497401_pastedImage_3.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 06:38:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62047#M5428</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-06-22T06:38:42Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62048#M5429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Thanks a lot.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;For understanding what I am doing:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I use this code for loading a featureLayer from my Arcgis Online Account:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CustomArcgisLayer = new FeatureLayer({&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url: my service url (&lt;A class="link-titled" href="https://services6.arcgis.com/" title="https://services6.arcgis.com/"&gt;https://services6.arcgis.com/&lt;/A&gt;&amp;nbsp;......),&lt;BR /&gt; });&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Every time I start my html or application there appear a credential dialog, so, I did this for fill this dialog. &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Basically I fill it using javascript&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;var form_esri_dialog=document.getElementsByClassName("esri-identity-modal esri-identity-modal--open")[0];&lt;BR /&gt; &lt;BR /&gt; if(typeof form_esri_dialog!="undefined"){&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var user= Array.from(document.getElementsByClassName("esri-identity-&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;form")&amp;nbsp;&amp;nbsp;[0].querySelectorAll('input[type="text"]'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var password=Array.from(document.getElementsByClassName("esri-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;identity-&amp;nbsp;form")&amp;nbsp;[0].querySelectorAll('input[type="password"]'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;user[0].value="xxxx"; &lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;password&lt;/SPAN&gt;[0].value="xxxxx"; &lt;BR /&gt; &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;var submit_form= Array.from(document.getElementsByClassName("esri-identity-&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;form")[0].querySelectorAll('input[type="submit"]'));&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;submit_form[0].click();&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I would like not doing this ...I would like do this in a background process or automatically&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I will look all the information you gave me,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Very thanks again&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:05:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62048#M5429</guid>
      <dc:creator>GenasysEsri</dc:creator>
      <dc:date>2020-06-22T07:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62049#M5430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So the 2 options I have provide, either one will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - using the resource-proxy will require 0 coding, you just need to use service url via the proxy as demostrated above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - you can get the token from&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm" title="https://developers.arcgis.com/rest/users-groups-and-items/generate-token.htm"&gt;Generate Token—ArcGIS REST API: Users, groups, and content | ArcGIS for Developers&lt;/A&gt;. you need to code this part&amp;nbsp;(Many ways to do this, esri also have a class you can use&amp;nbsp;&lt;A class="link-titled" href="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html" title="https://developers.arcgis.com/javascript/latest/api-reference/esri-request.html"&gt;request | ArcGIS API for JavaScript 4.15&lt;/A&gt;&amp;nbsp;)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once you have the token, append it to your url.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;CustomArcgisLayer = new FeatureLayer({&lt;/P&gt;&lt;P style="background-color: #ffffff; border: 0px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;url: my service url (https://url.to.your.service/..../whatever&lt;STRONG&gt;&amp;amp;token=fdksfdsfdsa&lt;/STRONG&gt;),&lt;BR /&gt;});&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 07:17:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62049#M5430</guid>
      <dc:creator>VictorTey</dc:creator>
      <dc:date>2020-06-22T07:17:09Z</dc:date>
    </item>
    <item>
      <title>Re: Programing arcgis login online js 4.15</title>
      <link>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62050#M5431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;Very very thanks.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;The first option I don't know how could do it ..it is like chinese lenguage for my...I just have a standart arcgis online account..I thought it will be more easy&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For the second option the same problem, my url has token and for creating a permanent token (I don't know if your option goes for these way) the example doesn't give to me how write it in javascript&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generate Token&lt;/P&gt;&lt;P&gt;Example1:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;A href="https://www.arcgis.com/sharing/rest/generateToken"&gt;https://www.arcgis.com/sharing/rest/generateToken &lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;username=jsmith33 &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;password=myPassword &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;referer=https://www.arcgis.com&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I think it will be in request, but where and how....I don`t see this in request information:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// request GeoJson data from USGS remote server&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; url = &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"https://earthquake.usgs.gov/earthquakes/feed/v1.0/summary/all_hour.geojson"&lt;/SPAN&gt;&lt;SPAN&gt;; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;esriRequest(url, { &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class=""&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;responseType&lt;/SPAN&gt;&lt;SPAN&gt;: &lt;/SPAN&gt;&lt;SPAN class="" style="color: #c41a16;"&gt;"json"&lt;/SPAN&gt;&lt;SPAN&gt; })&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN&gt;.then(&lt;/SPAN&gt;&lt;SPAN class=""&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;function&lt;/SPAN&gt;(&lt;SPAN class="" style="color: #5c2699;"&gt;response&lt;/SPAN&gt;)&lt;/SPAN&gt;&lt;SPAN&gt;{ &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #006a00;"&gt;// The requested data&lt;/SPAN&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;SPAN class="" style="color: #aa0d91; font-weight: bold;"&gt;var&lt;/SPAN&gt;&lt;SPAN&gt; geoJson = response.data; });&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #595959; background-color: #f8f8f8;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="background-color: #f8f8f8; color: #595959; "&gt;So, How could mix both of them??&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I don't want to tire you with my questions.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;I will continue using the way that works for me now and I understand&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I am very grateful for your attention and responses.&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;You would understand if you didn't answer me, I'm asking a lot from you&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2020 08:10:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/programing-arcgis-login-online-js-4-15/m-p/62050#M5431</guid>
      <dc:creator>GenasysEsri</dc:creator>
      <dc:date>2020-06-22T08:10:42Z</dc:date>
    </item>
  </channel>
</rss>

