tigase AuthRepository(digest plain otherAuth)

本文详细解析了Tigase XMPP Server中关于authentication的实现方式,特别是tigaseAuthRepository接口下的digestAuth、plainAuth和其他Auth三个接口的使用说明与区别。文章深入探讨了这些接口在不同版本中的变化,以及为何最终决定采用otherAuth接口来统一处理所有认证请求,以简化代码维护、简化API并方便扩展自定义认证协议。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

最近想自定下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.




转载于:https://my.oschina.net/greki/blog/213490

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值