laptop and a wrench

不具合

ArcGIS API for Python fails to authenticate with the following error message, "Exception: Unable to generate oauth token" returned when using built-in credentials and the Python environment in ArcGIS Server.

Portal for ArcGIS
不具合 ID 番号 BUG-000160690
送信されましたAugust 16, 2023
最終更新日February 14, 2025
適用対象Portal for ArcGIS
見つかったバージョン11.1
オペレーティング システムWindows Server
オペレーティング システムのバージョン2019 64 Bit
ステータスWill Not Be Addressed

参考情報

In ArcGIS Enterprise 11.x, administrators have the ability to disable the built-in Portal for ArcGIS account. If the SAML and built-in accounts are enabled, ArcGIS API for Python authenticates successfully. The other alternative is to use 'use_gen_token=True' with the built-in account information. ArcGIS API for Python does not support SAML logins.

対処法

Edit the authentication line to include 'use_gen_token=True'.

For example: gis = GIS(portal_url, username, password, use_gen_token=True)

再現の手順

不具合 ID: BUG-000160690

ソフトウェア:

  • Portal for ArcGIS

バグのステータスが変更されたときに通知を受け取る

Esri Support アプリのダウンロード

このトピックについてさらに調べる

ArcGIS エキスパートのサポートを受ける

テクニカル サポートへのお問い合わせ

Esri Support アプリのダウンロード

ダウンロード オプションに移動