reqwest icon indicating copy to clipboard operation
reqwest copied to clipboard

Kerberos authentication

Open tafia opened this issue 5 years ago • 3 comments

Is there any way to access a service with kerberos authentication, in particular on windows?

tafia avatar Jun 22 '20 07:06 tafia

I couldn't find anything in the Rust ecosystem for NTLM / Negotiate auth mechanisms; seems like a major opportunity for advancing Windows development with Rust.

It looks like the isahc crate depends on curl for the functionality: https://docs.rs/isahc/0.9.1/isahc/index.html#spnego

Additional documentation if I get time to implement it myself: https://datatracker.ietf.org/doc/html/rfc4559

An example implementation in Python for the NTLM half of the protocol: https://github.com/dopstar/requests-ntlm2/blob/master/requests_ntlm2/requests_ntlm2.py

Halkcyon avatar Jun 25 '21 13:06 Halkcyon

I think this would be great. I have been experimenting with https://docs.rs/libgssapi to authenticate with Kerberos using reqwest and I think it is feasible

DMaxter avatar Nov 06 '23 17:11 DMaxter

Any news on this? I think it could be useful given how many enterprise environments still use Kerberos.

jornfranke avatar Feb 13 '25 22:02 jornfranke