You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
richie
4ad68e01d7
|
5 years ago | |
---|---|---|
lib | 5 years ago | |
src/main | 5 years ago | |
.gitignore | 6 years ago | |
build.xml | 6 years ago | |
plugin.xml | 5 years ago | |
pom.xml | 5 years ago | |
readme.md | 5 years ago |
readme.md
简化http认证判定插件
表示http认证判定为从认证服务器返回非"false"字符串时,均表示认证通过:
value != "flase"
表示http认证判定为从认证服务器返回"true"字符串时,才表示认证通过:
value == "true"
表示http认证判定为当用户名是"sam"时,从认证服务器返回"YES"字符串时,才表示认证通过,其他用户名需要从认证服务器返回"OK",才表示认证通过
value == (username == "sam" ? "YES" : "OK")