How do I handle Negotiate in .NET?

喜你入骨 提交于 2019-12-01 06:50:20
  1. Parse the incoming response token
  2. Call Secur32.AcquireCredentialsHandle to get a handle
  3. Call Secur32.AcceptSecurityContext passing the handle and the token
  4. Call Secur32.QuerySecurityContextToken passing the security context
  5. Construct a new WindowsIdentity(hToken) using the output form step 4

If you have any questions about any of these steps, I can elaborate and/or provide some sample code.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!