简体   繁体   English

无需重定向即可登录ADFS

[英]Login to ADFS without redirect

Is there a way to authenticate with ADFS without being redirected to the ADFS login page? 有没有办法在不重定向到ADFS登录页面的情况下使用ADFS进行身份验证? Here is our situation. 这是我们的情况。

We have an AngularJS app that uses ADFS for SSO. 我们有一个使用ADFS进行SSO的AngularJS应用程序。 The app is a relying party to our AD that is also linked to O365 resources. 该应用程序是我们AD的依赖方,也与O365资源相关联。 Currently, it is working to where the user is redirected to the ADFS login page if not authenticated and redirects back to our app with the proper authorization code, which we then use to access the O365 resources via REST queries to display data (from Mail, Calendar, etc.) on our app. 目前,它正在努力将用户重定向到ADFS登录页面(如果未经过身份验证),并使用适当的授权代码重定向回我们的应用程序,然后我们通过REST查询来访问O365资源以显示数据(来自Mail,我们的应用程序上的日历等)。

We would like to remove the redirection step to ADFS so that the user stays on our app and has a seamless login experience. 我们希望将重定向步骤移除到ADFS,以便用户可以使用我们的应用程序并获得无缝的登录体验。 The ADFS page looks to be using form-based auth. ADFS页面看起来使用基于表单的身份验证。 I was wondering if there is a way to perform auth over http requests or some other method. 我想知道是否有办法通过http请求或其他方法执行身份验证。

We built a portal page to handle ADFS authentication for external apps. 我们构建了一个门户页面来处理外部应用程序的ADFS身份验证。 The portal is registered in Azure using Access Control Services. 门户网站使用访问控制服务在Azure中注册。 Once you authenticate into the portal you can click a link to any of our O365 sites. 进入门户网站后,您可以点击指向我们任何O365网站的链接。

This section in the web.config does a passive redirect: web.config中的此部分执行被动重定向:

  <system.identityModel.services>
    <federationConfiguration>
      <cookieHandler requireSsl="false" />
      <wsFederation passiveRedirectEnabled="true" issuer="https://{yourACSAccount}.accesscontrol.windows.net/v2/wsfederation" realm="https://{yourportal}" requireHttps="false" />
    </federationConfiguration>
  </system.identityModel.services>

Then the link on the portal that goes to O365 is linked to the adfs sign in page. 然后,门户网站上转到O365的链接将链接到adfs登录页面。 The adfs sign in page then automatically redirects the user to SharePoint. 然后,adfs登录页面会自动将用户重定向到SharePoint。

<a href="https://login.{yourDomain}/adfs/ls/?cbcxt=&popupui=&vv=&mkt=&lc=1033&wfresh=&wa=wsignin1.0&wtrealm=urn:federation:MicrosoftOnline&wctx=wa%3Dwsignin1%252E0%26rpsnv%3D2%26ct%3D1390418246%26rver%3D6%252E1%252E6206%252E0%26wp%3DMBI%26wreply%3Dhttps%253A%252F%252F{yourO365}%252Esharepoint%252Ecom%2fsites%2%26LoginOptions%3D3">

I hope that helps and or gets you closer to your goal. 我希望这有助于或让您更接近目标。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM