Azure / go-ntlmssp

NTLM/Negotiate authentication over HTTP
MIT License
189 stars 67 forks source link

Authentication fails with 401 #14

Open vk18vk opened 6 years ago

vk18vk commented 6 years ago

Authentication fails while using package for NTLM authentication. But the strange thing here is authentication do passes sometimes after many requests. Say for example after 5 or 10 requests, that means authentication happens at random trials. Is there anything to be changed from client end

ivandeex commented 3 years ago

This happened for us if go-ntlmssp is used from several goroutines. See https://github.com/rclone/rclone/pull/2921#issuecomment-782986691. We solved this by guarding Negotiator.RoundTrip calls with a mutex.