[英]Enabling Authentication for FitNesse Tests
I would like to enable authentication for our FitNesse tests. 我想为我们的FitNesse测试启用身份验证。 It is described on the FitNesse documentation page .
在FitNesse文档页面上对此进行了描述。
I tried that, but I get an ArrayIndexOutOfBoundsException. 我试过了,但是得到了ArrayIndexOutOfBoundsException。
java -cp fitnesse-standalone.jar fitnesse.authentication.Password -f c:/temp/Fitnesse/FitnesseAuthentication.txt -c fitnesse.authentication.HashingCipher
java.lang.ArrayIndexOutOfBoundsException: 4
at fitnesse.authentication.Password.args(Password.java:59)
at fitnesse.authentication.Password.main(Password.java:21)
Usage: java fitnesse.authentication.Password [-f <password file>] [-c <password cipher>] <user>
-f <password file> {passwords.txt}
-c <password cipher> {fitnesse.authentication.HashingCipher}
Does anyone know the correct way to create the Hashed version of the authentication file on a Windows platform? 有谁知道在Windows平台上创建身份验证文件的哈希版本的正确方法?
This is not related to Windows - I got the same message on a Linux system. 这与Windows不相关-在Linux系统上我得到了相同的消息。
In the case somebody is looking for the same error (and also didn't read the usage hint) you have to specify a username after the cipher (-c argument), eg 如果有人正在寻找相同的错误(并且也没有阅读用法提示),则必须在密码(-c参数)后指定用户名,例如
java -cp fitnesse-standalone.jar fitnesse.authentication.Password -f c:/temp/Fitnesse/FitnesseAuthentication.txt -c fitnesse.authentication.HashingCipher admin
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.