我试图从WL服务器无法检索用户角色
返回角色列表返回到移动客户端设备在我的LoginModule的createIdentity方法添加以下代码
HashMap<String, Object> customAttributes = new HashMap<String, Object>();
customAttributes.put("AuthenticationDate", new Date());
Set<String> groups = new HashSet<String>();
groups.add("Managers");
groups.add("Users");
UserIdentity identity = new UserIdentity(loginModule, USERNAME, "Fred Flintstone", groups, customAttributes, PASSWORD);
显示名称“Fred Flintstone”返回到移动设备,返回自定义属性,但组信息似乎在某处丢失。
我得到以下显示在移动设备日志
“BasicAuthRealm”:{ “用户id”: “USER1”, “属性”:{ “AuthenticationDate”:“星期四11月14日22点39分35秒EST 2013“},”isUserAuthenticated“:1,”displayName“:”Fred Flintstone“},”WL-Authentication-Success“:{”BasicAuthRealm“:{”userId“:”user1“,”attributes“:{”AuthenticationDate“ :“Thu Nov 14 22:39:35 EST 2013”},“isUserAuthenticated”:1,“displayName”:“Fred Flintstone”}},
我正在运行WL 6.0.0.1企业版并针对Liberty服务器v8.5.5.0
任何想法?