lstak / node-sharepoint

Connecting Node and SharePoint
http://allthatjs.com/2012/03/29/node-js-meet-sharepoint/
104 stars 41 forks source link

I can't get this to auth against my sharepoint #5

Open cortfritz opened 12 years ago

cortfritz commented 12 years ago

Wiresharked the URL the .js is sending,... it's the right URL. When I put that URL in a browser I can log in and it works.

Can you recommend a tool that will help me debug the SAML challenge and response? I can't seem to find out where my auth is going wrong.

lstak commented 12 years ago

In Node, try to add console.log() or inspect() on the send and callback parameter

cortfritz commented 12 years ago

Will try inspect. Log showed null return.

On Jun 26, 2012, at 10:56, "lstak" reply@reply.github.com wrote:

In Node, try to add console.log() or inspect() on the send and callback parameter


Reply to this email directly or view it on GitHub: https://github.com/lstak/node-sharepoint/issues/5#issuecomment-6583001


This e-mail and any files transmitted with it are intended solely for the use of the individual or entity to whom they are addressed. If the reader of this e-mail is not the intended recipient or the employee or agent responsible for delivering the message to the intended recipient, you are hereby notified that any use dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error, please e-mail us at caasecurity@caa.com or call 424-288-2000.

cortfritz commented 12 years ago

also, thank you!

timelyportfolio commented 11 years ago

changing

var token = 

line to

var token = js['S:Envelope']['S:Body'][0]['wst:RequestSecurityTokenResponse'][0]['wst:RequestedSecurityToken'][0]['wsse:BinarySecurityToken'][0]['_'];

worked for me