Skip to content

Commit f38f796

Browse files
authored
Merge pull request #1541 from xlt208/oauth-2-update
Updated steps for getting `client_id` based on latest ui/ux
2 parents 46f6d5d + 82b4049 commit f38f796

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

guide/03-the-gis/working-with-different-authentication-schemes.ipynb

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -359,28 +359,27 @@
359359
]
360360
},
361361
{
362+
"attachments": {},
362363
"cell_type": "markdown",
363364
"metadata": {},
364365
"source": [
365-
"## User authentication with OAuth 2.0 \n",
366+
"## User authentication with OAuth 2.0\n",
366367
"The ArcGIS Python API supports [OAuth 2.0](https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/what-is-oauth-2/) as an authentication method, and acts as a [serverless native application](https://developers.arcgis.com/documentation/core-concepts/security-and-authentication/mobile-and-native-user-logins/) when using OAuth 2.0 authorization with ArcGIS.\n",
367368
"\n",
368369
"To use this mode of authorization, you need a `client id`. If you already have a client id, you can skip the following section.\n",
369370
"\n",
370371
"### Obtaining a client id\n",
371372
"The steps below show how a client id can be obtained by registering a new application with your GIS. Only one client id is required, so if your GIS has one already, you may use it instead of creating a new application.\n",
372-
" \n",
373-
"* Log into your web GIS (ArcGIS Online organization or ArcGIS Enterprise)\n",
374-
"* Go to Content tab\n",
375-
"* Click '+ Add Item > An Application' menu\n",
376-
"* Add an application:\n",
377-
" * Type: Application\n",
378-
" * Title: Python\n",
379-
" * Tags: python\n",
380-
"* On the Item details page of this newly created application, navigate to Settings tab\n",
381-
"* Click the Registered Info button. It's towards the bottom of the page.\n",
382-
"* This will dispaly an App ID. This is your client id and needs to be passed in as the client_id parameter when construcing a GIS object. You need this in your Python code to log in.\n",
383-
" \n",
373+
"\n",
374+
"* Log in to your ArcGIS Online or ArcGIS Enterprise organization.\n",
375+
"* Go to the Content tab.\n",
376+
"* Click 'New item', then select 'Application'.\n",
377+
"* On the 'New item' dialog, select 'Other application' and click 'Next'.\n",
378+
"* Type in a title for the application item. Optionally, specify the folder, tags, and summary.\n",
379+
"* Click 'Save' to add the item.\n",
380+
"* On the item details page of this newly created application, browse to the Credentials section and find the Client ID. The string listed is the value that you will pass in as the `client_id` parameter when creating the GIS object.\n",
381+
"\n",
382+
"\n",
384383
"You can then log on to your org using the Python API using the code shown below:"
385384
]
386385
},

0 commit comments

Comments
 (0)