Giter VIP home page Giter VIP logo

Comments (7)

steffengy avatar steffengy commented on July 20, 2024

It works, sure.
I'm not aware of any other solution in rust.

If you want to let me know what you're trying to do,
I might be able to point you in the right direction.

from winauth-rs.

madmaxio avatar madmaxio commented on July 20, 2024

The task is to to do rust based windows domain authorization for web app, so iI need something similar to jespa http://www.ioplex.com/.

from winauth-rs.

steffengy avatar steffengy commented on July 20, 2024

I'm only aware of
https://github.com/StratumSecurity/ntlm-connector
and
https://github.com/steffengy/winauth-rs/tree/master/hyper
in rust which are both using winauth
and afaik both only implement the client side.

from winauth-rs.

madmaxio avatar madmaxio commented on July 20, 2024

Can you please provide some absolutely newbie friendly example how to use this thing? I mean, the most dumbed down one.

from winauth-rs.

steffengy avatar steffengy commented on July 20, 2024

First the documentation is really straightforward, there aren't more than a handful methods.
The hard part is really not the API but integrating it for HTTP auth as you want,
where example implementations luckily already exist which - as mentioned -
only require a little bit of willingness to go through them.

The general steps (no matter if HTTP or whatever protocol) are always the same:

  • intantiate a builder (winauth::NtlmV2ClientBuilder::new) or for SSO windows-only authentication (NtlmSspiBuilder).
  • configure it (pretty much only in the non-sso case)
  • call build
  • call next_bytes on the result, send to client, receive, call next_bytes with the response again and repeat until it doesn't want any more input (==>handshake done)

A few general examples can be found in the tests themselves:
general: https://github.com/steffengy/winauth-rs/blob/master/winauth/src/lib.rs#L876
windows-specific: https://github.com/steffengy/winauth-rs/blob/master/winauth/src/windows.rs#L201

from winauth-rs.

madmaxio avatar madmaxio commented on July 20, 2024

Thank you for amazing answer, will try.
If I will fail with my attempts is it possbile to contact you later about payment for solution I'm looking for?

from winauth-rs.

steffengy avatar steffengy commented on July 20, 2024

Should your solution end up generic enough, I'd appreciate a PR for the old hyper integration (I guess you will be using hyper?) in this repo.
If you have questions along the way, let me know.

For business inquiries, you can contact me via email.

from winauth-rs.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.