I'm not quite sure I have given the right description.
Bascially, I'm trying to add Windows Authentication
to a node.js site.
I send back a 401
with the WWW-Authenticate: Negotiate
header.
The browser immediately fires back an authorization
header with the value Negotiate <some string of characters>
At this point, I just want to ensure the token is valid. I've tried to find examples of other open-source frameworks that do this, but I didn't really know what I was looking for.
Just to be clear, the user has already signed on to the domain and is not sending username/password information.
(I may not fully understand how all this works).
I just found this.
Server decodes the NegTokenInit, extracts the supported MechTypes (the one at the front of the MechTypeList should be either Kerberos Legacy or Kerberos V5), ensures it is one of the expected ones, and then extracts the MechToken and authenticates using gss_accept_security_context.
If I understand it correctly, I'm looking for gss_accept_security_context
.
I also tried to using GSSManager
in java with no luck. I posted that problem here.
Am I headed in the right direction?