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

Return HTTP 401 when token is missing #55

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jameswestman
Copy link
Collaborator

When the repository returns an HTTP 401 error, flatpak is supposed to request a token (if it hasn't already) using the authenticator. However, we currently return a 403, which causes the transaction to fail instead.

I'm marking this as a draft because I haven't been able to fully test it, due to flatpak/flatpak#4862.

src/errors.rs Outdated Show resolved Hide resolved
When the repository returns an HTTP 401 error, flatpak is supposed to
request a token (if it hasn't already) using the authenticator. However,
we currently return a 403, which causes the transaction to fail instead.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants