-
Notifications
You must be signed in to change notification settings - Fork 986
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
chore: remove most of basic auth code #15182
chore: remove most of basic auth code #15182
Conversation
Now that the active policies are Session (for web) and Macaroon (for upload), remove the bulk of the BasicAuth policy. Move the logic farther up the chain, so that there's no extra work put in before telling the user that they should migrate to API Tokens. Resolves pypi#13770 Signed-off-by: Mike Fiedler <miketheman@gmail.com>
P.S. We can potentially also remove Lines 101 to 111 in 5261657
I elected to defer until this is reviewed and approved, in case there's some other tricky reason to keep the |
P.P.S. There's also some basic auth email sending code in the legacy upload endpoint that would be another deferral. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Negative diffs are the best diffs 🙂
I think we can also remove this: warehouse/warehouse/forklift/legacy.py Lines 996 to 1013 in 74d8013
|
Agreed - I noted that I'm deferring that #15182 (comment) |
Sorry, missed your P.P.S. 😂 |
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
Now that the active policies are Session (for web) and Macaroon (for upload), remove the bulk of the BasicAuth policy.
Move the logic farther up the chain, so that there's no extra work put in before telling the user that they should migrate to API Tokens.
Resolves #13770