[英]ADFS/SAML authentication for Java desktop app
I have a Java desktop app. 我有一个Java桌面应用程序。 I found a lot of online resources that talk about SSO authentication for web apps.
我找到了很多关于网络应用程序的SSO身份验证的在线资源。 I need the same thing for an old school desktop app.
对于旧式学校桌面应用,我需要同样的东西。 Basically, I need the app to open a browser window, have the user authenticate against ADFS and then get a token back.
基本上,我需要应用程序打开浏览器窗口,让用户对ADFS进行身份验证,然后获取令牌。
How can I add SSO authentication with ADFS/SAML? 如何使用ADFS / SAML添加SSO身份验证?
I found the answer. 我找到了答案。
NB: This is not an easy task. 注意:这不是一件容易的事。 It takes about a week's worth of work to put everything together.
把所有东西放在一起需要大约一个星期的工作量。
Desktop apps. 桌面应用。 don't have browsers.
没有浏览器。
WS-Fed and SAML are built around browser redirects. WS-Fed和SAML是围绕浏览器重定向构建的。
Why do you need SAML? 你为什么需要SAML? What about OpenID Connect / OAuth?
那么OpenID Connect / OAuth呢?
If that's an option have a look at the ADAL Java samples - Azure Active Directory Authentication Libraries . 如果这是一个选项,请查看ADAL Java示例 - Azure Active Directory身份验证库 。 There is limited OAuth support in ADFS.
ADFS中的OAuth支持有限。 V3.0
V3.0
Your other alternative is to use the active profile (web services) rather than the passive (browser). 您的另一种选择是使用活动配置文件(Web服务)而不是被动(浏览器)。
But that's WS-Trust not SAML. 但那是WS-Trust而不是SAML。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.