<?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 How to connect to my Portal when our security is ADFS? in ArcGIS API for Python Questions</title>
    <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845276#M3643</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our Portal uses ADFS as our security model. In my Jupyter notebook, when if try to create a GIS:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier,monospace;"&gt;gis = GIS("&lt;A href="https://webadaptor.power360web.com/portal" style="color: #0000ff;"&gt;https://webadaptor.mydomain.com/portal&lt;/A&gt;", "my.username&lt;A href="mailto:dirk.vandervoort@powereng.com" style="color: #0000ff;"&gt;@mydomain.com&lt;/A&gt;", "mypassword")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am informed that I cannot obtain a token:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: transparent; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Unable to generate token. Invalid username or password&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: transparent; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;/PRE&gt;&lt;P&gt;With an extensive traceback and the bottom line of:&lt;/P&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: #ffffff; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="box-sizing: border-box; color: darkred;"&gt;RuntimeError: Unable to generate token. Invalid username or password. (Error Code: 400)&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;The questions I have are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can we use our ADFS security to create a GIS in the API?&lt;/LI&gt;&lt;LI&gt;If yes, how do I do this?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Mar 2017 03:31:22 GMT</pubDate>
    <dc:creator>DirkVandervoort</dc:creator>
    <dc:date>2017-03-10T03:31:22Z</dc:date>
    <item>
      <title>How to connect to my Portal when our security is ADFS?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845276#M3643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Our Portal uses ADFS as our security model. In my Jupyter notebook, when if try to create a GIS:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="color: #0000ff; font-family: courier new,courier,monospace;"&gt;gis = GIS("&lt;A href="https://webadaptor.power360web.com/portal" style="color: #0000ff;"&gt;https://webadaptor.mydomain.com/portal&lt;/A&gt;", "my.username&lt;A href="mailto:dirk.vandervoort@powereng.com" style="color: #0000ff;"&gt;@mydomain.com&lt;/A&gt;", "mypassword")&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am informed that I cannot obtain a token:&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: transparent; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;Unable to generate token. Invalid username or password&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: transparent; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;/PRE&gt;&lt;P&gt;With an extensive traceback and the bottom line of:&lt;/P&gt;&lt;PRE style="box-sizing: border-box; overflow: auto; font-family: monospace; font-size: 14px; display: block; padding: 0px; margin: 0px; line-height: inherit; word-break: break-all; word-wrap: break-word; color: #000000; background-color: #ffffff; border: 0px; border-radius: 0px; white-space: pre-wrap; vertical-align: baseline; font-style: normal; font-variant-ligatures: normal; font-variant-caps: normal; font-weight: normal; letter-spacing: normal; orphans: 2; text-align: left; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px;"&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;SPAN style="box-sizing: border-box; color: darkred;"&gt;RuntimeError: Unable to generate token. Invalid username or password. (Error Code: 400)&lt;/SPAN&gt;&lt;/BLOCKQUOTE&gt;&lt;/PRE&gt;&lt;P&gt;The questions I have are:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Can we use our ADFS security to create a GIS in the API?&lt;/LI&gt;&lt;LI&gt;If yes, how do I do this?&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Mar 2017 03:31:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845276#M3643</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2017-03-10T03:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to my Portal when our security is ADFS?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845277#M3644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Shameless bump - I'm still trying to figure this out. TIA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 20:46:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845277#M3644</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2017-03-20T20:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to my Portal when our security is ADFS?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845278#M3645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dirk,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Are you using SAML with ADFS as your&amp;nbsp;identity provider?&amp;nbsp;SAML is an interactive workflow that's not yet supported with the ArcGIS API for Python. We&amp;nbsp;are adding support for SAML and OAuth2 in the upcoming release though and this feature is in QA currently.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you're using [LDAP or Active Directory configured with Portal tier authentication](&lt;A class="link-titled" href="http://server.arcgis.com/en/portal/latest/administer/windows/use-your-portal-with-ldap-and-portal-tier-authentication.htm" title="http://server.arcgis.com/en/portal/latest/administer/windows/use-your-portal-with-ldap-and-portal-tier-authentication.htm"&gt;Use your portal with LDAP or Active Directory and portal-tier authentication—Portal for ArcGIS (10.5) | ArcGIS Enterpr…&lt;/A&gt;&amp;nbsp;), you can use the Python API as this is supported with v1.0 and above using the GIS(url, username, password) API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Integrated Windows Authentication](&lt;A class="link-titled" href="http://server.arcgis.com/en/portal/latest/administer/windows/use-integrated-windows-authentication-with-your-portal.htm" title="http://server.arcgis.com/en/portal/latest/administer/windows/use-integrated-windows-authentication-with-your-portal.htm"&gt;Use Integrated Windows Authentication with your portal—Portal for ArcGIS (10.5) | ArcGIS Enterprise&lt;/A&gt;) is also supported using GIS(url) API - the username and password arent passed when using IWA and the current user's credentials are picked up by the script/API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rohit&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Mar 2017 23:37:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845278#M3645</guid>
      <dc:creator>RohitSingh2</dc:creator>
      <dc:date>2017-03-20T23:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to my Portal when our security is ADFS?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845279#M3646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Rohit, that's what I figured but was no certain. We are using ADFS and SAML, although we have retained one ArcGIS Portal named user account for administrative purposes. For business reasons we want all our uses to access Portal content via their ADFS SAML security. We are looking forward to your support of ADFS SAML. Thank you for your reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 21 Mar 2017 02:27:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845279#M3646</guid>
      <dc:creator>DirkVandervoort</dc:creator>
      <dc:date>2017-03-21T02:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to connect to my Portal when our security is ADFS?</title>
      <link>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845280#M3647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This has been a challenge for our organization for the past few years as well. We finally put together an authentication handler that works with the python requests API which supports the esri proprietary "token authentication", web-tier using Kerberos (or ntlm) and SAML with enterprise logins. &lt;BR /&gt; &lt;BR /&gt;Code repo is on git hub &lt;A class="link-titled" href="https://github.com/DOI-BLM/requests-arcgis-auth" title="https://github.com/DOI-BLM/requests-arcgis-auth"&gt;GitHub - DOI-BLM/requests-arcgis-auth: Authentication handler for using Esri ArcGIS for Server and Portal (ArcGIS Online…&lt;/A&gt;&amp;nbsp;&amp;nbsp;in case you find it valuable for your efforts. The saml piece was developed specifically to work with our saml provider (which supports Kerberos authentication), but the overall process for authentication to the identity provider (SAML) with handing the saml code back to the portal to acquire an access and refresh token is technically feasible. &lt;BR /&gt; &lt;BR /&gt;Best of luck.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Jun 2017 17:12:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-api-for-python-questions/how-to-connect-to-my-portal-when-our-security-is/m-p/845280#M3647</guid>
      <dc:creator>PF1</dc:creator>
      <dc:date>2017-06-21T17:12:09Z</dc:date>
    </item>
  </channel>
</rss>

