JSF认证和授权 [英] JSF authentication and authorization

查看:242
本文介绍了JSF认证和授权的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是去执行身份验证和授权的JSF Web应用程序的最佳方式? preferrably我仍然想使用基于容器的安全性,因为我需要调用EJB的需要本金。

What is the best way to go about implementing authentication and authorization for a JSF web application? Preferrably I'd still want to use container-based security, as I need to call EJBs that require the principal.

我意识到基于表单的认证是JSF的重大斗争,但我可以或许一起使用的PhaseListener或类似的东西与程序的登录用户进行身份验证?

I realize form-based authentication is a major struggle with JSF, but can I perhaps use a PhaseListener or something similar together with programmatic logon to authenticate the user?

任何其他方法,我倒是应该看看?

Any other methods I should rather have a look at?

推荐答案

尝试检查出的博客的使用JAAS与JSF。
这是如何将JAAS与JSF进行身份验证和授权部署示例。

Try to check out the blog for using JAAS with JSF. This is the example of how to deploy the JAAS with JSF for authentication and authorization.

我希望它能帮助。

这篇关于JSF认证和授权的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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