I have a custom credential helper executable written in C++ on Windows 10. It basically just std::couts the username and password with endl:
std::cout << "username=myuser" << std::endl;
std::cout << "password=mypassword" << std::endl;
The credential helper gets registered:
[credential "https://github.com/myuser/myrepo.git"]
helper = C:/Users/myuser/helper/GitCredentialManager.exe
The credential helper is called but fails to authenticate for the remote (I tested github and gitlab)
remote: Invalid username or password. fatal: Authentication failed for 'https://github.com/myuser/myrepo.git'
2FA is disabled and I also tried to provide an access token instead of a password.
I also tried to use printf instead of std::cout. I called std::cout.flush() Is there anything that I am doing wrong / do I miss any windows particularities? This works perfectly fine on macOS.