使用 SAML 和 JBoss 实施 SSO

发布于 2024-08-12 09:47:44 字数 260 浏览 3 评论 0原文

我想在 JBossAS 中使用 SAML 令牌实现 SSO。

场景如下。

  1. 我有 2 个应用程序 app1 和 app2 在 2 个 JBoss 实例上运行。
  2. 登录 app1 并使用基于表单的身份验证输入用户名/密码。
  3. 登录后,单击应重定向到 app2 页面的链接。
  4. 这应该在 JBossAS 上使用 SSO 和 SAML 令牌来对用户进行身份验证和授权。

谁能让我知道该怎么做?

I want to implement SSO with SAML tokens in JBossAS.

The scenario is as follows.

  1. I have 2 applications app1 and app2 running on 2 JBoss instances.
  2. Login into app1 and enter username / password using form based auth.
  3. Once login, click on the link that should be redirected to the app2 page.
  4. This should use SSO with SAML tokens on JBossAS for authentication and authorization of users.

Can anyone let me know how to do this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

身边 2024-08-19 09:47:44

我刚刚发现你的问题,发现它仍然没有得到解答。
您可以查看 JBoss picketlink。该页面描述了 JBoss 5+ 和 Tomcat 5.5+ 中的联合支持。

支持的协议包括 SAML2、WS-Trust 和 Open ID。

I just now found your question and noticed it is still not answered.
You can take a look at JBoss picketlink. Said page describes the federation support in JBoss 5+ and Tomcat 5.5+.

Supported protocols are SAML2, WS-Trust and Open ID.

匿名的好友 2024-08-19 09:47:44

由于 SAML2 用户在身份验证后断言,因此在两个应用程序上使用纯 SAML2 需要您将这两个应用程序注册为服务提供商 - 我相信。

我使用 JBoss/Tomcat SSO 阀做了一个解决方法:我的 (Seam) 应用程序 1 使用 SAML2 进行身份验证,而我的其他应用程序只是重用在第一个应用程序中创建的主体(用户名、角色)。我相信这符合你的情况。在app 1中登录,在app2中进行安全约束,在app2中不登录。

我必须创建一个定制阀门才能实现这一目标
https://github.com/jensaug/jbossweb-customsso

/Jens

Since SAML2 users Assertion after authentication, using pure SAML2 on both apps would require you to register both apps as Service Providers - I believe.

I did a workaround using JBoss/Tomcat SSO valves: My (Seam) app 1 uses SAML2 for authentication and my other apps simply reuses that Principal (username, roles) created in the first app. I believe this corresponds to your situation. Log in at app 1, security constraint in app2, no log in in app2.

I had to create a custom valve to achieve this
https://github.com/jensaug/jbossweb-customsso

/Jens

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文