Claim auth from ADFS

前端 未结 3 2040
眼角桃花
眼角桃花 2020-12-13 15:39

I try to connect to a SharePoint Online instance via a WPF application. I have found this article that discribes a possible solution but the problem is that the specific ins

3条回答
  •  感情败类
    2020-12-13 16:18

    I've played with Fiddler. Basically the flow goes like this:

    • Get a SAML token from ADFS
    • Post it to https://login.microsoftonline.com/login.srf (body should be wa=wsignin1.0, wresult=…token… and wctx=MEST=0&LoginOptions=2&wa=wsignin1%2E0&rpsnv=2&ct=1343219880&rver=6%2E1%2E6206%2E0&wp=MBI&wreply=https%3A%2F%2Fspirit365%2Esharepoint%2Ecom%2F%5Fforms%2Fdefault%2Easpx&id=500046&cbcxt=mai&wlidp=1&guest=1&vv=910&mkt=EN-US&lc=1033&bk=1343219930
    • Capture the input hidden named "t" from the Form
    • POST that "t" to /_layouts/Authenticate.aspx. That should give you the FedAuth and rtFa cookie.

    From that point this is the same as the code here: http://www.wictorwilen.se/Post/How-to-do-active-authentication-to-Office-365-and-SharePoint-Online.aspx

提交回复
热议问题