【发布时间】:2017-01-30 12:07:56
【问题描述】:
我正在使用 hapi-swagger 制作 API,并且我已经实现了基本身份验证。但即使用户没有身份验证,他仍然可以查看我的文档页面。我想阻止他查看我的文档页面。如何在 swagger 文档页面上实现基本身份验证? I want to hide this page and ask for authentication credentials before rendering documentation
【问题讨论】:
-
我有同样的问题,即使我很长时间以来都被这个问题所困扰。为什么不直接联系 github 上的开发人员?
标签: node.js authentication swagger basic-authentication hapijs