【问题标题】:.htaccess file with an iOS enterprise app带有 iOS 企业应用程序的 .htaccess 文件
【发布时间】:2015-08-14 15:11:44
【问题描述】:

我已设置供内部使用的 iOS 企业应用分发,并通过 .htaccess 文件对其进行保护。

AuthType Basic
AuthName "Password Protected Area"
AuthUserFile http://domain.com/path/.htpasswd
Require valid-user

还有一个 index.html 文件

<a href="itms-services://?action=download-manifest&url=https://domain.com/path/enterprise_viewer.plist">

但问题是,每当用户在浏览器中打开 index.html 时,它会要求输入 3 次密码,一次用于访问,第二次和第三次是在单击下载链接后。

任何将密码提示减少到 1 的建议。

【问题讨论】:

    标签: ios .htaccess password-protection in-house-distribution


    【解决方案1】:

    访问后,后续请求不是通过浏览器发出的,这就是你需要重新认证的原因。

    我们以这种方式解决了仅保护 .ipa 文件的问题:

    <Files *.ipa>
    AuthType Basic
    AuthName "Password Protected Area"
    AuthUserFile http://domain.com/path/.htpasswd
    Require valid-user
    </Files>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2023-03-03
      • 2012-01-26
      • 2014-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-07-05
      • 2023-04-10
      相关资源
      最近更新 更多