<?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 User authentication without hardcoding in Open Source Mapping Libraries Ques.</title>
    <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/user-authentication-without-hardcoding/m-p/771899#M228</link>
    <description>&lt;P&gt;Is there a way to request a users username and password for authentication/token, instead of hardcoding a username and password? &amp;nbsp;I found the example using the serverAuth code, but I would like to make sure the user has access to the map service?&lt;/P&gt;</description>
    <pubDate>Mon, 28 Aug 2023 13:19:21 GMT</pubDate>
    <dc:creator>AlexandraYanick</dc:creator>
    <dc:date>2023-08-28T13:19:21Z</dc:date>
    <item>
      <title>User authentication without hardcoding</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/user-authentication-without-hardcoding/m-p/771899#M228</link>
      <description>&lt;P&gt;Is there a way to request a users username and password for authentication/token, instead of hardcoding a username and password? &amp;nbsp;I found the example using the serverAuth code, but I would like to make sure the user has access to the map service?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Aug 2023 13:19:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/user-authentication-without-hardcoding/m-p/771899#M228</guid>
      <dc:creator>AlexandraYanick</dc:creator>
      <dc:date>2023-08-28T13:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: User authentication without hardcoding</title>
      <link>https://community.esri.com/t5/open-source-mapping-libraries-ques/user-authentication-without-hardcoding/m-p/771900#M229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you want to enable authentication with a standalone ArcGIS Server instance, you can consider creating your own sign in dialog with &amp;lt;input&amp;gt; elements and a &amp;lt;button&amp;gt; to give your users a chance to supply the credentials so that you can kick off a `/generateToken` request dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the content is secured through ArcGIS Online (or an instance of ArcGIS Server &lt;A href="http://server.arcgis.com/en/portal/latest/administer/linux/federate-an-arcgis-server-site-with-your-portal.htm"&gt;federated&lt;/A&gt; with Portal) you can and should use OAuth2 instead of handling the user's credentials yourself. You can find an example of that below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://esri.github.io/esri-leaflet/examples/arcgis-online-auth.html" title="http://esri.github.io/esri-leaflet/examples/arcgis-online-auth.html"&gt;ArcGIS Online OAuth | Esri Leaflet&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Apr 2017 20:02:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/open-source-mapping-libraries-ques/user-authentication-without-hardcoding/m-p/771900#M229</guid>
      <dc:creator>JohnGravois</dc:creator>
      <dc:date>2017-04-07T20:02:28Z</dc:date>
    </item>
  </channel>
</rss>

