NTLM authentication with Ruby and Faraday

The example how to authenticate in NTLM by curl and Faraday ruby library. Tagged with ruby, microsoft, authentication.Everyone knows how HTTP basic authentication works. A lot of services use it often. Once I happened upon with NTLM auth. Getting access was challenging, but I coped with it. After working on the task I would like to share the solution how to work with NTLM and Faraday library.For instance, with curl you can specify the user name and password for server authentication. The command looks like this: curl -u : https://resource_with_ntlm_auth.com/path_to_resource.xml -I. Unfortunately it doesn't work with NTLM. The response would be:.
NTLM authentication with Ruby and Faraday #ruby #rubydeveloper #rubyonrails #authentication https://rubyonrails.ba/single/ntlm-authentication-with-ruby-and-faraday

Nezir Zahirovic

Contractor Ruby On Rails (8+ years) / MCPD .Net / C# / Asp.Net / CSS / SQL / (11 years)

related articles