|
464 | 464 | "cell_type": "markdown", |
465 | 465 | "metadata": {}, |
466 | 466 | "source": [ |
467 | | - "This workflow demonstrates how to use an Administrative connection to register a new Application, define its security boundaries (Privileges, Expiration, and Referers), and subsequently initialize a restricted GIS session using the generated `client_id`" |
| 467 | + "This workflow demonstrates how to use an Administrative connection to register a new Application, define its security boundaries (Privileges, Expiration, and Referers), and subsequently initialize a restricted GIS session using the generated `client_id`." |
468 | 468 | ] |
469 | 469 | }, |
470 | 470 | { |
|
514 | 514 | ")\n", |
515 | 515 | "\n", |
516 | 516 | "# Retrieve the Client ID (The App's Username) and the Client Secret (The App's Password)\n", |
517 | | - "client_id = apiKeyCredentials.app_info['client_id']" |
| 517 | + "client_id = apiKeyCredentials.app_info['client_id']\n", |
| 518 | + "client_secret = apiKeyCredentials.app_info['client_secret']" |
518 | 519 | ] |
519 | 520 | }, |
520 | 521 | { |
|
523 | 524 | "source": [ |
524 | 525 | "##### 3. Initializing the App Session (App Authentication)\n", |
525 | 526 | "\n", |
526 | | - "Now, we initialize a new GIS object using the `client_id`. This session is App-authenticated. It does not represent the Admin; it represents the \"API Key Credentials\" app itself." |
| 527 | + "Now, we initialize a new GIS object using the `client_id` and `client_secret`. This session is App-authenticated. It does not represent the Admin; it represents the \"API Key Credentials\" app itself." |
527 | 528 | ] |
528 | 529 | }, |
529 | 530 | { |
|
533 | 534 | "outputs": [], |
534 | 535 | "source": [ |
535 | 536 | "# Authenticate as the App\n", |
536 | | - "gis_app = GIS(url=\"https://arcgis.com\", client_id=client_id)" |
| 537 | + "gis_app = GIS(url=\"your_organization_url\", client_id=client_id, client_secret=client_secret)" |
537 | 538 | ] |
538 | 539 | }, |
539 | 540 | { |
540 | 541 | "cell_type": "markdown", |
541 | 542 | "metadata": {}, |
542 | 543 | "source": [ |
543 | | - "After running the above cell, it will ask for a token. A browser window will be open up, copy the token from the browser" |
| 544 | + "After running the above cell, `gis_app` will be app-authenticated." |
544 | 545 | ] |
545 | 546 | }, |
546 | 547 | { |
|
745 | 746 | "name": "python", |
746 | 747 | "nbconvert_exporter": "python", |
747 | 748 | "pygments_lexer": "ipython3", |
748 | | - "version": "3.13.12" |
| 749 | + "version": "3.12.7" |
749 | 750 | }, |
750 | 751 | "toc": { |
751 | 752 | "base_numbering": 1, |
|
0 commit comments