To further diagnose authentication issues, enable debug logging in platform gateway.
Procedure
- Change the logging configuration in the platform gateway’s
settings.py file.
- Set the logging level for the
ansible_base logger to DEBUG:
LOGGING['loggers']['ansible_base']['level'] = 'DEBUG'
After this change, detailed AuthTokenError messages are displayed in the logs, providing specific information about the cause of the failure.