Weblogic 上基于 EJB3 的 JAX-WS Web 服务身份验证
我只是想为一家新闻机构开发一个内部 Web 服务,该服务连接到 MySQL 数据库,其中保留了所有身份验证/新闻数据。所有这一切的目的是根据客户端的订阅生成文章/文章列表的 XML 版本,以便我正在使用 Java Server Faces 开发的移动前端显示它。
到目前为止,我已经使用 Eclipse 从数据库生成并注释了 JPA 实体,并创建了无状态会话 Bean,以便可以将其发布为 Web 服务。所有这些都工作得很好,所以是时候将其提升到一个新的水平,但我不知道从哪里开始。 我设法使用我的数据库在 WebLogic 中设置了一个自定义身份验证器提供程序,但并不真正知道这是否方便以及下一步该去哪里。 我还查看了 OpenAM,但认为应该有 JAX-WS 或 WebLogic 原生的东西。
我该如何处理这个问题?据我所知,要求是:
- 一次身份验证。
- 使用存储在 MySQL 表中的用户名/密码。
- SOAP 消息中提供的身份验证数据? (客户端将通过 JSF 前端登录,将该数据发送到 WS 以检查其是否有效)。
谢谢!!!
ps:我很久以前就做过Java,所以我已经与最新的技术/方法“脱节”了,所以虽然我的问题很直击主题,但如果你认为有更好的方法来完成我的任务到目前为止已经完成,请告诉我。
I'm just trying to develop an internal web service for a news agency which is connected to a MySQL database where all the authentication/news data remains. The purpose of all of this is to generate an XML version of the article/ list of articles depending upon the client's subscription, so it can be shown by a mobile frontend that I am working on, using Java Server Faces.
Up to date, I have generated and annotated JPA entities from my database using Eclipse, as well as created a Stateless Session Bean so it can be published as a web service. All of this works absolutely fine, so it's time to take it to the next level, but I don't know where to start.
I managed to set up a custom authenticator provider within WebLogic using my database, but don't really know if that's handy and where to go next.
I also had a look on OpenAM but thought there should be something native to either JAX-WS or WebLogic.
How could I approach this? The requirements as far as I can see would be:
- One time authentication.
- Using username/password stored on a MySQL table.
- Authentication data provided within the SOAP message? (The client would log in through the JSF frontend, sending that data to the WS to check if it's valid).
Thanks!!!
p.s.: I did Java a long time ago, so I've been "disconnected" from the latest technologies/methodologies, so although my question goes quite straight to the point, if you think there would be a better way to accomplish what I've done so far just let me know, please.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论