Skip to content

Conversation

sudo-bmitch
Copy link
Contributor

@sudo-bmitch sudo-bmitch commented Aug 19, 2024

Fixes issue

Unable to access registries that require a login or anonymous token from behind a redirect.

Describe the change

A registry server that is just a redirect to a real server that requires auth will now work. Previously, auth was only sent to the first server (if and only if that server requested it), now it is only sent to the server that performed the auth. The auth package itself was also refactored a bit, removing unneeded interfaces and reducing exported fields.

How to verify it

regctl tag ls nabo.codimd.dev/hackmdio/hackmd

Changelog text

  • Fix: Support auth on redirect.

Please verify and check that the pull request fulfills the following requirements

  • Tests have been added or not applicable
  • Documentation has been added, updated, or not applicable
  • Changes have been rebased to main
  • Multiple commits to the same code have been squashed

A registry server that is just a redirect to a real server that requires auth will now work.
Previously, auth was only sent to the first server, now it is only sent to the server that performed the auth.
The auth package itself was also refactored a bit, removing unneeded interfaces and reducing exported fields.

Signed-off-by: Brandon Mitchell <git@bmitch.net>
@sudo-bmitch sudo-bmitch merged commit e6c9d20 into regclient:main Aug 19, 2024
5 checks passed
@sudo-bmitch sudo-bmitch deleted the pr-auth-redirect branch August 19, 2024 14:46
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.

1 participant