Zimbra SOAP API 在 java 中使用 zm_auth_token 进行身份验证
我想使用我处置的 zm_auth_token 对用户进行身份验证:
目前,我正在这样做:
LmcAuthRequest auth = new LmcAuthRequest();
auth.setUsername(userName);
auth.setPassword(password);
LmcAuthResponse authResp = (LmcAuthResponse) auth.invoke(serverURL);
LmcSession session = authResp.getSession();
但我想使用我拥有的 zm_auth_token。如何做到这一点??? 谢谢
I want to authenticate a user using the zm_auth_token that I dispose :
For the moment, I'm doing this :
LmcAuthRequest auth = new LmcAuthRequest();
auth.setUsername(userName);
auth.setPassword(password);
LmcAuthResponse authResp = (LmcAuthResponse) auth.invoke(serverURL);
LmcSession session = authResp.getSession();
But I want to use the zm_auth_token that I have. How to do this ???
Thnx
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
zimbra Lmc 方法现已弃用......
如果你想使用 SOAP,他们更喜欢使用 ZMailBox(它对我不起作用),我使用了这个方法:
The zimbra Lmc methods are deprecated now ...
If you want to use SOAP they prefer doing it using ZMailBox (It doesn't work for me), I used this method :
您可以使用 Zimbra 库来调用 SOAP API。请查看此答案。
You can use Zimbra libraries for calling SOAP API. Please check this answer.