AD FS 2.0 Authentication and AJAX

后端 未结 7 1913
一向
一向 2020-12-30 05:58

I have a web site that is trying to call an MVC controller action on another web site. These sites are both setup as relying party trusts in AD FS 2.0. Everything authentica

7条回答
  •  北荒
    北荒 (楼主)
    2020-12-30 06:10

    Perhaps the 2 first posts of this serie will help you. They consider ADFS and AJAX requests

    What I think I would try to do is to see why the authentication cookies are not transmitted through ajax, and find a mean to send them with my request. Or wrap the ajax call in a function that pre authenticate by retrieving the html form, appending it hidden to the DOM, submitting it (it will hopefully set the good cookies) then send the appropriate request you wanted to send originally

提交回复
热议问题