[英]Spring Fox Swagger UI Mask Password
I have a Spring Fox Swagger UI where I perform a number of operations, one of which is posting to Jira and it requires a user to input their username and password.我有一个 Spring Fox Swagger UI,我在其中执行了许多操作,其中一个是发布到 Jira,它需要用户输入他们的用户名和密码。
This issue is the password does not mask.这个问题是密码不屏蔽。
public ResponseEntity<?> createJiraIssue( @RequestParam(value = "jiraProject") @ApiParam(value = ParamConfig.PROJECT_DESC) String jiraProject,
@RequestParam(value = "qcPassword", required = false) @ApiParam(type = "string", format = "password", value = ParamConfig.QC_PASSWORD) String qcPassword ) throws CustomException,
IOException,
URISyntaxException
I added the type = "string", format = "password"
but it made no difference.我添加了
type = "string", format = "password"
但没有区别。
Any ideas?有任何想法吗?
It is a known issue which currently is not fixed这是一个已知问题,目前尚未修复
https://github.com/swagger-api/swagger-core/issues/469 https://github.com/springfox/springfox/issues/2366 https://github.com/swagger-api/swagger-core/issues/469 https://github.com/springfox/springfox/issues/2366
There are no workaround for this at the current moment.目前没有解决方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.