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

How to use AuthenticationMiddleware from py-rattler #996

Open
2 tasks done
FaustinCarter opened this issue Dec 20, 2024 · 0 comments
Open
2 tasks done

How to use AuthenticationMiddleware from py-rattler #996

FaustinCarter opened this issue Dec 20, 2024 · 0 comments

Comments

@FaustinCarter
Copy link

FaustinCarter commented Dec 20, 2024

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

I can see from the rust code that there appears to be support for netrc authentication (I CTL-F'd for netrc in the source...), but I can't understand how I'm supposed to tell the AuthenticationMiddleware to use the netrc backend from the Python side since the middleware doesn't appear to accept any params to __init__. An example for how to choose between the various backends for auth (i.e. netrc, basic http, bearer token in the request header, etc) would be extremely helpful.

Additional Context

No response

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

No branches or pull requests

1 participant