laptop and a wrench

Erro

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
Número de ID do Erro BUG-000160690
EnviadoAugust 16, 2023
Última ModificaçãoFebruary 14, 2025
Aplica-se àPortal for ArcGIS
Versão encontrada11.1
Sistema OperacionalWindows Server
Versão do Sistema Operacional2019 64 Bit
StatusWill Not Be Addressed

Informações Adicionais

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.

Solução Provisória

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

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

Etapas para Reproduzir

ID do Erro: BUG-000160690

Software:

  • Portal for ArcGIS

Seja notificado quando o status de um erro mudar

Baixe o Aplicativo de Suporte da Esri

Descubra mais sobre este tema

Obtenha ajuda de especialistas do ArcGIS

Entre em contato com Suporte Técnico

Baixe o Aplicativo de Suporte da Esri

Ir para as opções de download