liferay portlet:如何使用自动登录(也欢迎使用替代方法) [英] liferay portlet: how to use autologin (alternatives also welcome)

查看:136
本文介绍了liferay portlet:如何使用自动登录(也欢迎使用替代方法)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用外部令牌服务来验证我的用户,然后将他们重定向到门户(门户网站url +一些get参数).
现在,我想在门户网站中记录这些用户. 由于外部身份验证服务不在我的控制范围内,所以我不能仅将其与门户网站登录名绑定.而且由于我无法解密门户网站用户帐户密码,所以我不能只创建一个ext-plugin并通过该密码登录.

I'm using an external token service to validate my users and they then get redirected to the portal (portal url + some get parameters).
Now I would like to log these users in the portal. Since the external authentication service is outside of my control I can't just tie it in with the portal login. And since I can't decrypt the portal user account password I can't just create an ext-plugin and log in through that.

所以我搜索了一下,偶然发现了liferay具有自动登录的事实.
现在我在想:

So I searched a bit and stumbled upon the fact that liferay has an autologin.
Now I was wondering:

  1. 我可以在普通的portlet中使用它,还是也需要在ext中使用(仍然不知道该怎么做)
  2. 我需要制作哪些会话变量/cookie?
  3. 没有人有代码段/教程,因为我还没有找到完整的代码段/教程.
  4. 牢记未来版本的liferay,这有多可行?

推荐答案

外部令牌服务"是什么? Liferay可以直接使用吗,这是SSO(单点登录)系统吗?

What's this "external token service"? Is it an SSO (Single Sign On) system that Liferay happens to work with out of the box?

看看liferay的web.xml-里面有很多SSO过滤器-您会在liferay的源代码中找到实现.这些过滤器用于处理SSO系统,并且无需在门户网站本身中进行用户名/密码验证就可以执行登录某人所需的一切.您也许可以在这里找到最适合您需求的变体.

Take a look at liferay's web.xml - there's a lot of SSO filters in there - you'll find the implementation in liferay's source code. These filters are used for handling SSO systems and do everything that's necessary to log someone in without username/password validation in the portal itself. You might be able to find the variant that best suites your needs here.

这篇关于liferay portlet:如何使用自动登录(也欢迎使用替代方法)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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