简体   繁体   English

WSO2 Identity Server身份验证,返回响应

[英]WSO2 Identity Server authentication with response in return

I have a custom authenticator for Liferay that authenticates the user using "AuthenticationAdmin" service and service method "login()" only returns the boolean response.I 我有一个用于Liferay的自定义身份验证器,该身份验证器使用“ AuthenticationAdmin”服务对用户进行身份验证,而服务方法“ login()”仅返回布尔响应。

In my case I want the calling web application to know more from this login method ..like some variables that is needed by application for authenticated user eg some user attribute like "isEnabled", "customattr" from LDAP after authentication. 在我的情况下,我希望调用的Web应用程序从此登录方法中了解更多信息,例如身份验证用户的应用程序所需的一些变量,例如,身份验证后来自LDAP的某些用户属性,例如“ isEnabled”,“ customattr”。

Can we return some responses from WSO2 Authenticator? 我们可以从WSO2身份验证器返回一些响应吗? How can we achieve this from WSO2 IS? 我们如何从WSO2 IS中实现这一目标?

In wso2 identity server all the attributes (email,last name..etc) are stored as claims.After authenticating using "AuthenticationAdmin" you can use "WSUserStoreManager" to get claim values of user(using method getUserClaimValue).Refer "remote-usermgt" example can be found identity server sample folder or else refer this[0] blog post. 在wso2身份服务器中,所有属性(电子邮件,姓氏等)都存储为声明。使用“ AuthenticationAdmin”进行身份验证后,可以使用“ WSUserStoreManager”获取用户的声明值(使用getUserClaimValue方法)。请参阅“ remote-usermgt可以在身份服务器示例文件夹中找到该示例,也可以参考this [0]博客文章。

[0]http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html [0] http://blog.facilelogin.com/2010/05/managing-users-and-roles-with-wso2.html

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM