|
359 | 359 | ]
|
360 | 360 | },
|
361 | 361 | {
|
| 362 | + "attachments": {}, |
362 | 363 | "cell_type": "markdown",
|
363 | 364 | "metadata": {},
|
364 | 365 | "source": [
|
365 |
| - "## User authentication with OAuth 2.0 \n", |
| 366 | + "## User authentication with OAuth 2.0\n", |
366 | 367 | "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",
|
367 | 368 | "\n",
|
368 | 369 | "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",
|
369 | 370 | "\n",
|
370 | 371 | "### Obtaining a client id\n",
|
371 | 372 | "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", |
384 | 383 | "You can then log on to your org using the Python API using the code shown below:"
|
385 | 384 | ]
|
386 | 385 | },
|
|
0 commit comments