Skip to content

fix: Auth middleware should be added after mirror rewrite#4399

Merged
wolfv merged 3 commits intoprefix-dev:mainfrom
maccam912:main
Aug 20, 2025
Merged

fix: Auth middleware should be added after mirror rewrite#4399
wolfv merged 3 commits intoprefix-dev:mainfrom
maccam912:main

Conversation

@maccam912
Copy link
Contributor

Fixes #4397

Mirror URL rewrite happened after authentication lookup, so mirrors which required credentials for pypi packages were not using credentials even when they were present. This adds auth middleware after mirror rewrites happen.

@maccam912 maccam912 changed the title bug: Ath middleware should be added after mirror rewrite fix: Auth middleware should be added after mirror rewrite Aug 19, 2025
@wolfv wolfv merged commit 7c8e42d into prefix-dev:main Aug 20, 2025
38 of 39 checks passed
@wolfv
Copy link
Member

wolfv commented Aug 20, 2025

Thank you!

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.

Auth lookup happens before mirror rewrite. Credentials should be applied to the final host and optionally both.

3 participants