laptop and a wrench

Bug

The error message, "Unable to generate token" is returned when trying to list the Portal for ArcGIS federated servers when using the Integrated Windows Authentication (IWA) authentication scheme to log in to Portal for ArcGIS via Python API.

Last Published: September 12, 2018 ArcGIS API for Python
Bug ID Number BUG-000116560
SubmittedSeptember 4, 2018
Last ModifiedJuly 13, 2025
Applies toArcGIS API for Python
Version found1.5
Operating SystemWindows OS
Operating System Version2012 R2
Version Fixed1.7.0
StatusFixed

Workaround

Use all credentials in the GIS class. For example, GIS (portal, usr, pwd).

Steps to Reproduce

Bug ID: BUG-000116560

Software:

  • ArcGIS API for Python

Get notified when the status of a bug changes

Download the Esri Support App

Discover more on this topic

Get help from ArcGIS experts

Contact technical support

Download the Esri Support App

Go to download options