如何在JAVA中设置Web应用程序以使用ADFS / SAML / WS- *?

时间:2022-04-12 05:49:47

I have a pair of web applications written in Java 1.6.X using Wicket-1.5.x There is another organization where I work that maintains a public login portal for my web applications to integrate with that supplies user Identities via ADFS/SAML tokens.

我有一对使用Wicket-1.5.x用Java 1.6.X编写的Web应用程序。我工作的另一个组织维护着一个公共登录门户,我的Web应用程序与通过ADFS / SAML令牌提供的用户身份相集成。

They actually provide a sample application for me to look at but its written in ASP.net. The part of the application that does the checking of identities is using the Windows Identity Foundation classes and therefore is a non-starter. Doing a web search on Converting ASP.net code to Java code I found Grasshopper but I have VS 2010 and it "requires" 2008 and wont install.

他们实际上提供了一个示例应用程序供我查看,但它是用ASP.net编写的。执行身份检查的应用程序部分使用Windows Identity Foundation类,因此不是启动程序。在将ASP.net代码转换为Java代码时进行网络搜索我发现了Grasshopper,但我有VS 2010,它“需要”2008并且不会安装。

I've created a simple test page that displays all the cookies it can find and while I'm getting: JSESSIONID, utma, utmz, utmb, utmc, none of my received cookies looks like a SAML token.

我已经创建了一个简单的测试页面,显示它可以找到的所有cookie,当我得到时:JSESSIONID,utma,utmz,utmb,utmc,我收到的cookie都不像SAML令牌。

I've tried running the hosted version of the other organizations sample. and the Sample.domain.com cookies don't even exist until AFTER there sample applications secure page loads. So how do I get the identity information if the cookies are not CREATED until after my page is loaded?

我已经尝试运行其他组织样本的托管版本。并且在样本应用程序安全页面加载之后,甚至不存在Sample.domain.com cookie。那么如果在我的页面加载之后才创建cookie,我该如何获取身份信息呢?

is this where WS-Federation comes in?

这是WS-Federation进来的地方吗?

2 个解决方案

#1


1  

I did eventually solve my problem. I ended up Integrating Apache CXF Fediz with my application. It's still relatively new, but it works and with some tweaks was able to fulfill my needs.

我最终解决了我的问题。我最终将Apache CXF Fediz与我的应用程序集成。它仍然相对较新,但它的工作原理和一些调整能够满足我的需求。

#2


0  

WIF uses WS-Federation and there's no Java equivalent that I'm aware of.

WIF使用WS-Federation,并且没有我所知道的Java等价物。

However, you can use SAML. Refer: SAML : A SAML stack.

但是,您可以使用SAML。参考:SAML:SAML堆栈。

#1


1  

I did eventually solve my problem. I ended up Integrating Apache CXF Fediz with my application. It's still relatively new, but it works and with some tweaks was able to fulfill my needs.

我最终解决了我的问题。我最终将Apache CXF Fediz与我的应用程序集成。它仍然相对较新,但它的工作原理和一些调整能够满足我的需求。

#2


0  

WIF uses WS-Federation and there's no Java equivalent that I'm aware of.

WIF使用WS-Federation,并且没有我所知道的Java等价物。

However, you can use SAML. Refer: SAML : A SAML stack.

但是,您可以使用SAML。参考:SAML:SAML堆栈。