【问题标题】:Apply authentication in etherpad lite在 etherpad lite 中应用身份验证
【发布时间】:2012-09-13 06:11:30
【问题描述】:

我们如何防止 etherpad lite pad 被公众访问。有什么方法可以防止未经授权访问 etherpad。只有拥有用户名和密码的用户才能访问键盘。

我在 Windows 上使用 etherpad lite。 谢谢。

【问题讨论】:

    标签: authentication etherpad


    【解决方案1】:

    您必须在 etherpad 的 settings.json 中进行配置。原始配置有据可查。

    这是您应该注意的配置部分。

      /* Users must have a session to access pads. This effectively allows only group pads to be accessed. */
      "requireSession" : true,
    
      /* Users may edit pads but not create new ones. Pad creation is only via the API. This applies both to group pads and regular pads. */
      "editOnly" : false,
    
      /* How long may clients use served javascript code (in seconds)? Without versioning this
         may cause problems during deployment. Set to 0 to disable caching */
      "maxAge" : 21600, // 60 * 60 * 6 = 6 hours
    
      /* This is the path to the Abiword executable. Setting it to null, disables abiword.
         Abiword is needed to advanced import/export features of pads*/  
      "abiword" : null,
    
      /* This setting is used if you require authentication of all users.
         Note: /admin always requires authentication. */
      "requireAuthentication": true,
    
      /* Require authorization by a module, or a user with is_admin set, see below. */
      "requireAuthorization": true,
    
      /* Users for basic authentication. is_admin = true gives access to /admin.
         If you do not uncomment this, /admin will not be available! */
      /*
      "users": {
        "admin": {
          "password": "changeme1",
          "is_admin": true
        },
        "user": {
          "password": "changeme1",
          "is_admin": false
        }
      },
      */
    

    【讨论】:

    • 那么如果我设置"requireAuthentication": true,我可以分享我的pad吗?
    • 我发现上述解决方案在我的实例中不起作用。经过一些谷歌搜索和一些试验和错误。我只修改了:"requireAuthentication": true, 其他处理授权和会话的值可以不用管:"requireAuthorization": false,"requireSession": false,
    • 我还将粘贴链接到我在其他地方为正在谷歌搜索“etherpad 基本身份验证”(就像我一样)并登陆这里的任何人提供的答案。我写了最终解决我的情况的内容:stackoverflow.com/a/70399416/1741264
    猜你喜欢
    • 2021-05-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-12-23
    • 1970-01-01
    • 2017-11-30
    相关资源
    最近更新 更多