简体   繁体   English

usernametoken-auth rampart / axis2 1.6.2

[英]usernametoken-auth rampart/axis2 1.6.2

I just upgraded to the latest axis2/rampart version and encounter a strange behavior when providing a webservice which requires username-passwort authentification. 我刚刚升级到最新的axis2 / rampart版本,并在提供需要用户名密码验证的Web服务时遇到奇怪的行为。

up to now, I implemented my own passwordcallback-handler which handled WSPasswordCallbacks of type WSPasswordCallback.USERNAME_TOKEN_UNKNOWN. 到目前为止,我实现了自己的passwordcallback-handler,用于处理WSPasswordCallback.USERNAME_TOKEN_UNKNOWN类型的WSPasswordCallbacks。 I looked up the provided user in the DB and checked the given password. 我在数据库中查找了提供的用户,并检查了给定的密码。

in the latest version, the passwordcallback-usage always seems to be WSPasswordCallback.USERNAME_TOKEN where I have to provide the password for the given user - but I'm not able to provide the password, because I don't store the passwords plaintext. 在最新版本中,passwordcallback-usage始终似乎是WSPasswordCallback.USERNAME_TOKEN,我必须在其中提供给定用户的密码-但我无法提供密码,因为我没有以明文形式存储密码。 do I have to write my own org.apache.ws.security.validate.UsernameTokenValidator? 我必须编写自己的org.apache.ws.security.validate.UsernameTokenValidator吗? where do I have to register it? 我必须在哪里注册?

我在这里就Stackoverflow撰写了关于遇到此问题的摘要,以及针对此问题而找到的解决方法, 请在此处阅读

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

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