在WPF应用程序中嵌入的角度SPA应用程序中启用SSO [英] Enabling SSO in angular SPA application embedded with in a WPF application

查看:126
本文介绍了在WPF应用程序中嵌入的角度SPA应用程序中启用SSO的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我有一个使用Windows集成身份验证保护的WPF应用程序和一个使用OAuth2承载令牌身份验证保护的Angular SPA应用程序.我正在使用角度温泉中的ADAL JS库来启用承载令牌认证. 现在,我计划将Angle SPA应用程序嵌入WPF应用程序中.如何在这两个应用程序之间启用SSO.

我们可以使用ADAL JS来基于Windows集成身份验证(当前已登录用户)生成令牌,而无需提供用户名&密码?

OR

我可以使用无头kerberos身份验证从WPF应用程序生成JWT令牌,并将该令牌传递给angular spa应用程序,但是我不确定adal js如何使用此令牌来验证后续请求.

Adal JS不允许填充用户信息并为给定的JWT令牌缓存令牌. adal js中是否有任何方法可以获取JWT令牌并填充用户信息并缓存该令牌以备将来使用?

任何其他想法都将不胜感激.

谢谢

Raj


Rajasekaran P

解决方案

请确认您的方案是否类似于单个 页面应用(SPA)身份验证方案.


Hi All,

I have a WPF application which is secured using Windows integrated authentication and a Angular SPA application which is secured using OAuth2 bearer token authentication. I am using ADAL JS library in the angular spa to enable bearer token authentication. Now I am planning to embed the angular SPA application within the WPF application. How do i enable SSO between these two applications. 

Can we use ADAL JS to generate token based on windows integrated authentication (currently logged in user) with out supplying the user name & password?

OR 

I can generate a JWT token from WPF application using headless kerberos authentication and pass the token to angular spa application however I am not sure how this token can be used by adal js to authenticate subsquent requests.

Adal JS is not letting to populate user info and cache token for a given JWT token. Is there any method in adal js that can take JWT token and populate user info and cache the token for future use?

Any other idea would really appreciated.

Thanks,

Raj


Rajasekaran P

解决方案

Hi,

Please confirm if your scenario is similar to Web application to web API Authentication scenario with delegated user identity. If yes, then the document above will guide you. However, for your SPA application you must be using OAuth 2.0 implicit authorization grant as described in Single Page Application (SPA) Authentication scenario.


这篇关于在WPF应用程序中嵌入的角度SPA应用程序中启用SSO的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆