tigase AuthRepository(digest plain otherAuth)

时光总嘲笑我的痴心妄想 提交于 2019-12-05 02:23:02

最近想自定下tigase的authentication,一直纠结

tigase AuthRepository接口digestAuth plainAuth otherAuth 3个接口的使用说明;

发现调试一直走的是otherAuth,再纠结其他的要不实现;最终找到2处说明;


1.http://www.tigase.org/content/sasl-custom-mechanisms-and-configuration

说的含糊;

GENERAL REMARKS
JabberIqAuth used for non-SASL authentication mechanisms uses the same callback as the SASL mechanisms.

Methods '*auth*' in '*Repository' interfaces will be deprecated. These interfaces will be treated as user details providers only. There will be new methods available which will allow for additional login operations on the database such as last successful login recording and so on….



最终在5.1的release说明里,找到了说法;全部走otherAuth,其他2个以备抛弃

http://www.tigase.org/content/tigase-xmpp-server-510-beta-3

Code refactored and deprecated methods for digestAuth and plainAuth. They are being replaced with otherAuth which handles now all authentication requests. This is to make the code simpler to maintain, simplify the API and make it easier to extend authentication protocols with custom ones.




标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!