<?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: Unable to Generate Tokens using SAML enterprise accounts in ArcGIS Enterprise Questions</title>
    <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1274372#M35542</link>
    <description>&lt;P&gt;I'm not a Python expert, but I would imagine you would need to find a set of libraries for supporting SAML2 due to the many interactions.&amp;nbsp; I'm not sure I've come across this use-case before.&amp;nbsp; Typically, scripts, because they are not human and so use OAuth (ArcGIS Token) account.&amp;nbsp; Note that SAML2 largely represents human users.&lt;/P&gt;</description>
    <pubDate>Sat, 01 Apr 2023 08:20:42 GMT</pubDate>
    <dc:creator>Scott_Tansley</dc:creator>
    <dc:date>2023-04-01T08:20:42Z</dc:date>
    <item>
      <title>Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055538#M30120</link>
      <description>&lt;P&gt;Running a Federated 1081 Enterprise deployment with Azure AD as our identity store.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am unable to generate a token using our enterprise login credentials. Tested from &lt;A href="https://webadaptor.domain.com/arcgis/sharing/rest/generateToken" target="_blank"&gt;https://webadaptor.domain.com/arcgis/sharing/rest/generateToken&lt;/A&gt;&lt;/P&gt;&lt;P&gt;But I get this error:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="TigerWoulds_0-1620351958762.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/12804i67EB8EF4385825D8/image-size/medium?v=v2&amp;amp;px=400" role="button" title="TigerWoulds_0-1620351958762.png" alt="TigerWoulds_0-1620351958762.png" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;TigerWoulds_0-1620351958762.png&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;It does work if I use a built in account that isnt tied to our IDP. Any ideas why this happening?&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 01:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055538#M30120</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-05-07T01:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055634#M30127</link>
      <description>&lt;P&gt;When using an external identity provider via either SAML or OpenID Connect, Portal for ArcGIS (as the service provider) has no connection to the user's credentials. The authentication process is handled by the return of the properties within the SAML assertion/response and mapped to appropriate values within the Portal user's profile. With that being the case, token generation at the Sharing/REST endpoint is not possible for those users and would need to be generated via the OAuth2 mechanism. I've attached a common workflow for the Python API that explains the process in a bit more detail.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;User authentication with OAuth 2.0 | Working with different authentication schemes | ArcGIS API for Python&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/#User-authentication-with-OAuth-2.0" target="_blank"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 13:21:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055634#M30127</guid>
      <dc:creator>ChristopherPawlyszyn</dc:creator>
      <dc:date>2021-05-07T13:21:01Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055827#M30133</link>
      <description>&lt;P&gt;Okay thanks. What's interesting is that we do have another 1081 deployment with Azure AD as our IDP - and I can generate tokens using enterprise accounts.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 May 2021 19:10:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1055827#M30133</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-05-07T19:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101485#M31167</link>
      <description>&lt;P&gt;Hello friend, were you able to solve the problem? I have the same problem.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Sep 2021 22:01:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101485#M31167</guid>
      <dc:creator>Carlos_ArturoSarmiento_Royero</dc:creator>
      <dc:date>2021-09-23T22:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101612#M31175</link>
      <description>&lt;P&gt;Unfortunately no. Here is my original problem that prompted this question. We were trying to generate a token to authenticate into a Web AppBuilder app. This did not work without using OAuth instead of generate token. Maybe this might help:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-web-appbuilder-questions/webapp-builder-on-iis-login-only-works-with-built/m-p/1082227#M21153" target="_blank"&gt;Re: WebApp Builder on IIS - Login only works with ... - Esri Community&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 13:50:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101612#M31175</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-24T13:50:09Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101855#M31179</link>
      <description>&lt;P&gt;Thanks for your answer.&amp;nbsp;Is it possible to somehow inject credentials through oauth so that the user does not have to authenticate through a page?&lt;/P&gt;</description>
      <pubDate>Fri, 24 Sep 2021 22:28:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101855#M31179</guid>
      <dc:creator>Carlos_ArturoSarmiento_Royero</dc:creator>
      <dc:date>2021-09-24T22:28:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101879#M31180</link>
      <description>&lt;P&gt;Other than making the app, map, and services public no. Depending on what you're doing, I've seen folks use a proxy file on a websever to bypass the login.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/javascript/latest/proxies/" target="_blank"&gt;Proxy pages with the API | ArcGIS API for JavaScript&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Sep 2021 00:52:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1101879#M31180</guid>
      <dc:creator>tigerwoulds</dc:creator>
      <dc:date>2021-09-25T00:52:28Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1112255#M31424</link>
      <description>&lt;P&gt;I was able to implement the OAuth connection using the client_id. Is there a way to do this in an automated standalone python file (possibly through REST calls) which is seemless and does not require me to enter the OAuth2 approval code?&lt;/P&gt;&lt;P&gt;I want to be able to connect to multiple Portals via a script tool within a Toolbox.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Oct 2021 00:54:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1112255#M31424</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2021-10-29T00:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273434#M35509</link>
      <description>&lt;P&gt;Hi Julian,&lt;/P&gt;&lt;P&gt;your post is a little bit old in the meantime, still i want to ask if you have a solution for your problem? Because i have the same problem&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 08:26:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273434#M35509</guid>
      <dc:creator>MichaelNüßlein</dc:creator>
      <dc:date>2023-03-30T08:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273627#M35521</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/100922"&gt;@MichaelNüßlein&lt;/a&gt;.&amp;nbsp;Unfortunately not if you are using enterprise logins through SAML. The automation only works if you use a built in Portal account.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 16:18:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273627#M35521</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2023-03-30T16:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273847#M35527</link>
      <description>&lt;P&gt;At 10.9.x or higher, you can login to the admin pages using SAML2.&amp;nbsp; Before then the portal admin pages needed a built in user.&lt;/P&gt;</description>
      <pubDate>Thu, 30 Mar 2023 20:44:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273847#M35527</guid>
      <dc:creator>Scott_Tansley</dc:creator>
      <dc:date>2023-03-30T20:44:07Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273975#M35535</link>
      <description>&lt;P&gt;Dear Scott,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thank you for your response. We are working with 10.9.1 and our SAML-login manually works good. But i want to use the SAML login within a script on linux to automatically test the validity of the SAML signin certificate.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 31 Mar 2023 06:21:59 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1273975#M35535</guid>
      <dc:creator>MichaelNüßlein</dc:creator>
      <dc:date>2023-03-31T06:21:59Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1274372#M35542</link>
      <description>&lt;P&gt;I'm not a Python expert, but I would imagine you would need to find a set of libraries for supporting SAML2 due to the many interactions.&amp;nbsp; I'm not sure I've come across this use-case before.&amp;nbsp; Typically, scripts, because they are not human and so use OAuth (ArcGIS Token) account.&amp;nbsp; Note that SAML2 largely represents human users.&lt;/P&gt;</description>
      <pubDate>Sat, 01 Apr 2023 08:20:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1274372#M35542</guid>
      <dc:creator>Scott_Tansley</dc:creator>
      <dc:date>2023-04-01T08:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1274454#M35548</link>
      <description>&lt;P&gt;&lt;a href="https://community.esri.com/t5/user/viewprofilepage/user-id/100922"&gt;@MichaelNüßlein&lt;/a&gt;, you may have seen this already, but here are all the options on how to connect using different authentication schemes:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/" target="_blank"&gt;https://developers.arcgis.com/python/guide/working-with-different-authentication-schemes/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 02 Apr 2023 22:10:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1274454#M35548</guid>
      <dc:creator>julian_svcs</dc:creator>
      <dc:date>2023-04-02T22:10:12Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1509666#M40082</link>
      <description>&lt;P&gt;I was trying to login to a saml account via arcpy signintoportal gp tool, but it is not supported:&lt;BR /&gt;&lt;A href="https://community.esri.com/t5/arcgis-pro-ideas/support-for-enterprise-login-in-arcpy/idi-p/1015426" target="_blank"&gt;https://community.esri.com/t5/arcgis-pro-ideas/support-for-enterprise-login-in-arcpy/idi-p/1015426&lt;/A&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN&gt;We won't be able to support SAML logins because they can use different identity providers (PKI or IWA). The workaround already mentioned works—start&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;ArcGIS Pro, sign in manually, and select the 'sign me in automatically' button"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also, I tried authenticating directly to the saml account with the generateToken api, which is called by arcpy signintoportal under the hood, but also not supported:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://support.esri.com/en-us/knowledge-base/problem-unable-to-generate-tokens-using-arcgis-enterpri-000029156" target="_blank"&gt;https://support.esri.com/en-us/knowledge-base/problem-unable-to-generate-tokens-using-arcgis-enterpri-000029156&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;"This issue is by design. It is not possible to allow token-based security with SAML-authenticated accounts without undermining the security provided by the SAML identity provider."&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 22:38:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1509666#M40082</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-07-24T22:38:36Z</dc:date>
    </item>
    <item>
      <title>Re: Unable to Generate Tokens using SAML enterprise accounts</title>
      <link>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1524392#M40365</link>
      <description>&lt;P&gt;related post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/td-p/852979" target="_blank"&gt;https://community.esri.com/t5/arcgis-api-for-python-questions/pass-ad-login-from-arcgis-to-arcpy/td-p/852979&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2024 14:22:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-enterprise-questions/unable-to-generate-tokens-using-saml-enterprise/m-p/1524392#M40365</guid>
      <dc:creator>AndresCastillo</dc:creator>
      <dc:date>2024-08-20T14:22:32Z</dc:date>
    </item>
  </channel>
</rss>

