You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using token-based authentication, I encountered a 401 Unauthorized error. However, when testing the same token with curl, it worked correctly. After further investigation, I found that I had an outdated .netrc file with incorrect credentials. Once I removed the .netrc file, the token authentication started working as expected.
Unexpected Behavior
The library appears to prioritize .netrc credentials over the explicitly provided token, leading to an authentication failure when incorrect credentials are present in .netrc.
Expected Behavior
When a token is explicitly provided, .netrc should be ignored, ensuring that token authentication functions correctly.
The text was updated successfully, but these errors were encountered:
phantomGik
changed the title
Token based authorization overrided by content of netrc
Token based authorization overridden by content of netrc
Mar 20, 2025
gonchik
changed the title
Token based authorization overridden by content of netrc
[Confluence] Token based authorization overridden by content of netrc
Mar 25, 2025
An issue with Confluence API authentication
Description
When using token-based authentication, I encountered a 401 Unauthorized error. However, when testing the same token with curl, it worked correctly. After further investigation, I found that I had an outdated .netrc file with incorrect credentials. Once I removed the .netrc file, the token authentication started working as expected.
Unexpected Behavior
The library appears to prioritize .netrc credentials over the explicitly provided token, leading to an authentication failure when incorrect credentials are present in .netrc.
Expected Behavior
When a token is explicitly provided, .netrc should be ignored, ensuring that token authentication functions correctly.
Environment
python==3.8
atlassian-python-api==3.41.21
requests==2.31.0
The text was updated successfully, but these errors were encountered: