Authentication 如何在单页应用程序中自动验证页面
我们正在使用Durandal开发单页应用程序(SPA)。我有一个视图Authentication 如何在单页应用程序中自动验证页面,authentication,iframe,single-page-application,durandal,Authentication,Iframe,Single Page Application,Durandal,我们正在使用Durandal开发单页应用程序(SPA)。我有一个视图Test.html。 此视图将由另一个应用程序(App2,它不是SPA)通过iFrame使用App2将通过应用程序url直接访问Test.htmlhttp://localhost/App1/#Test 我的问题是 由于我们有两个独立的应用程序,当App2通过iFrame请求时,如何对登录App2的用户进行身份验证并显示视图Test.html 将app2嵌入iframe还是直接使用它其实并不重要。 重要的是您是在一个域还是不同的
Test.html
。
此视图将由另一个应用程序(App2
,它不是SPA)通过iFrame使用App2
将通过应用程序url直接访问Test.html
http://localhost/App1/#Test
我的问题是
- 由于我们有两个独立的应用程序,当
通过iFrame请求时,如何对登录App2
的用户进行身份验证并显示视图App2
Test.html