Skip to content

How do you provide credentials (when fetching)? #786

Answered by Byron
philipahlberg asked this question in Q&A
Discussion options

You must be logged in to vote

The reason this seems a bit cumbersome is that it's essentially the credential-helper protocol turned into a Rust API. The handler can obtain credentials, and later store or erase them depending on whether they worked or not. Such calls you would be ignoring then.

ctx can be turned into next via next: ctx.into() which should be fine as the username and password seem to be hardcoded anyway. Suffice to say that I consider this an example and in real life this wouldn't be hardedcoded like that.

On a possibly related note, the default configuration does not handle authentication in the same way as my git installation does. I can git fetch without being prompted for my username and password, …

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@philipahlberg
Comment options

@Byron
Comment options

@philipahlberg
Comment options

@philipahlberg
Comment options

@Byron
Comment options

Answer selected by Byron
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants