自定义身份验证Web服务 [英] Custom Authentication Web Service

查看:84
本文介绍了自定义身份验证Web服务的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用我的旧客户端公开的身份验证Web服务.但是我无法将这些用户信息复制到liferay数据库中.谁能帮助我编写自定义身份验证服务或挂钩/插件来重用我自己的实现进行身份验证?

I want to use authentication web services that is exposed by my legacy client. But I cannot copy those user information in to liferay database. Can any one help me to write a custom authentication service OR a hook/plugin to reuse my own implementation for authentication?

推荐答案

我想使用我的旧客户端公开的身份验证Web服务.

I want to use authentication web services that is exposed by my legacy client.

您需要实现Liferay的com.liferay.portal.security.auth.Authenticator类,以使用您自己的自定义身份验证器来调用您的Web服务.可以通过将以下内容添加到Portal-ext.properties中来将其插入Liferay:auth.pipeline.pre = [您的类路径].

You need to implement Liferay's com.liferay.portal.security.auth.Authenticator class to use your own custom authenticator that would call your web services. This can be plugged into Liferay by adding the folliowing to portal-ext.properties: auth.pipeline.pre=[your classpath].

但是我无法将这些用户信息复制到liferay数据库中.

But I cannot copy those user information in to liferay database.

我相信,如果您不想将用户数据存储在Liferay中,也可以在portal-ext.properties文件中使用auth.pipeline.enable.liferay.check = false.提醒您,我现在正尝试做同样的事情,但我运气不太好.

I believe that if you don't want to store your user data in Liferay you can also use auth.pipeline.enable.liferay.check=false in the portal-ext.properties file. Mind you, I'm trying to do the same right now and I'm not having much luck.

祝你好运!

这篇关于自定义身份验证Web服务的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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