Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug]: Authorization Conflict: New Collection Inheriting API Key from Original Collection Instead of Using BasicAuth #196

Open
1 task done
amirhoseinjfri opened this issue Oct 27, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@amirhoseinjfri
Copy link

amirhoseinjfri commented Oct 27, 2024

What happened?

I set up an inherited API key for my first collection and applied it to all sub-requests, which worked perfectly. Later, I created a new collection with BasicAuth and changed its sub-requests to use "Inherited" authorization. However, when I tried making requests, I received a "Not Authorized" error. On inspecting the request headers, I found that the new collection was incorrectly inheriting the API key from the first collection instead of using its intended BasicAuth.

i hope i explained well, thanks

Steps to reproduce?

1. Open the app.
2. Create a new collection (Collection A).
3. Create an API key for Collection A and set it as "Inherited."
4. Apply the inherited API key to all sub-requests of Collection A.
5. Verify that all sub-requests of Collection A work as expected.
6. Create a second collection (Collection B) and set it up with BasicAuth.
7. Change the authorization for all sub-requests of Collection B to "Inherited."
8. Attempt to send a request with Collection B and observe the "Not Authorized" error message.
9. Check the request headers and see that Collection B is inheriting the API key from Collection A instead of the intended BasicAuth.

What did you expect to happen?

not having this issue i guess!

Platform

Windows

HTTPie Desktop version

2024.1.2.0

Relevant log output

No response

Code of Conduct

  • I agree to follow this project's Code of Conduct
@amirhoseinjfri amirhoseinjfri added the bug Something isn't working label Oct 27, 2024
@amirhoseinjfri amirhoseinjfri changed the title [Bug]: Collection inherited Auth not setting to requests [Bug]: Authorization Conflict: New Collection Inheriting API Key from Original Collection Instead of Using BasicAuth Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant