<?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 Trying to authenticate without user name and password in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-authenticate-without-user-name-and/m-p/842098#M3562</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I am scripting&amp;nbsp;a scheduled job to author and update content in AGOL - Hosted Feature layer. my enterprise AGOL enterprise uses federated office 365 login so I can’t just username and password flow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;So the best option is to create a app in AGOL and get the appid and appsecret and authenticate.&amp;nbsp;(previously i make own my rest calls to get the token and do other stuff )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;API documentation&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;class&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;arcgis.gis.GIS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;(&lt;/SPAN&gt;&lt;EM style="font-weight: inherit;"&gt;url=None&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;username=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;password=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;key_file=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;cert_file=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;verify_cert=True&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;set_active=True&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;client_id=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;profile=None&lt;/EM&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt; font-style: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt; font-style: inherit;"&gt;there is no way to pass the client secret in this above flow. even i tried&amp;nbsp;put &amp;nbsp;client secret in place of password it opens up the web browser and after successful login it returns a token then i need to manually paste that with my script prompt - which is not ideal since i am developing a scheduled task. (if Enterprise AGOL uses&amp;nbsp;federated login to office365 then this method seems to returns wrong token - I think it’s a bug)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;API would be more versatile &amp;nbsp;if there a way to set the token&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, I can make my own rest calls and generate the token and pass the token to api. because now api is not usable for any &amp;nbsp;of my automation&amp;nbsp;use cases for&amp;nbsp;enterprise AGOL. &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 21 Jul 2017 23:40:51 GMT</pubDate>
    <dc:creator>YogeshDhanapal1</dc:creator>
    <dc:date>2017-07-21T23:40:51Z</dc:date>
    <item>
      <title>Trying to authenticate without user name and password</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-authenticate-without-user-name-and/m-p/842098#M3562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;I am scripting&amp;nbsp;a scheduled job to author and update content in AGOL - Hosted Feature layer. my enterprise AGOL enterprise uses federated office 365 login so I can’t just username and password flow.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;So the best option is to create a app in AGOL and get the appid and appsecret and authenticate.&amp;nbsp;(previously i make own my rest calls to get the token and do other stuff )&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;API documentation&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;class&amp;nbsp;&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;arcgis.gis.GIS&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;(&lt;/SPAN&gt;&lt;EM style="font-weight: inherit;"&gt;url=None&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;username=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;password=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;key_file=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;cert_file=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;verify_cert=True&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;set_active=True&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;client_id=None&lt;/EM&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;EM style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt;"&gt;profile=None&lt;/EM&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt; font-style: inherit;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="border: none windowtext 1.0pt; padding: 0in; color: #3d3d3d; font-weight: inherit; font-size: 11.5pt; font-style: inherit;"&gt;there is no way to pass the client secret in this above flow. even i tried&amp;nbsp;put &amp;nbsp;client secret in place of password it opens up the web browser and after successful login it returns a token then i need to manually paste that with my script prompt - which is not ideal since i am developing a scheduled task. (if Enterprise AGOL uses&amp;nbsp;federated login to office365 then this method seems to returns wrong token - I think it’s a bug)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d; border: none windowtext 1.0pt; padding: 0in;"&gt;API would be more versatile &amp;nbsp;if there a way to set the token&lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;, I can make my own rest calls and generate the token and pass the token to api. because now api is not usable for any &amp;nbsp;of my automation&amp;nbsp;use cases for&amp;nbsp;enterprise AGOL. &amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0in; margin-bottom: .0001pt; background: white;"&gt;&lt;SPAN style="font-size: 11.5pt; color: #3d3d3d;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 21 Jul 2017 23:40:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/trying-to-authenticate-without-user-name-and/m-p/842098#M3562</guid>
      <dc:creator>YogeshDhanapal1</dc:creator>
      <dc:date>2017-07-21T23:40:51Z</dc:date>
    </item>
  </channel>
</rss>

