removed non-interctive login code sample and recommended built-in for that workflow
"cell_type": "markdown",
"metadata": {},
"source": [
+ "##### Interactive Login Experience\n",
"This uses interactive sign-in experience: you would be redirected to your organization's sign in page using the configured identity provider. Upon signing in, you would get a code, that you can paste back to complete the sign in process:"
]
},
"cell_type": "markdown",
"metadata": {},
"source": [
- "Esri Python API developers internally have successfully created a non-interactive login experience that responds to requests with a known format. The recommended suggestion for non-interactive login scripts is to use the built-in identity provider instead of SAML.\n",
- "\n",
- "A non-interactive GIS object will look like below:"
- ]
- },
- {
- "cell_type": "code",
- "execution_count": 10,
- "metadata": {},
- "outputs": [
- {
- "name": "stdout",
- "output_type": "stream",
- "text": [
- "Successfully logged in as: arcgis_python\n"
- ]
- }
- ],
- "source": [
- "gis = GIS(\"https://pythonapi.playground.esri.com/portal\", username=\"arcgis_python\", password=\"amazing_arcgis_123\",\n",
- " client_id='f8cRxbP3NO8bf9ag')\n",
- "print(\"Successfully logged in as: \" + gis.properties.user.username)"
+ "##### Non-Interactive Login Experience\n",
+ "The recommended suggestion for non-interactive login scripts is to use the built-in identity provider instead of SAML."
]
},
{
