redtimer icon indicating copy to clipboard operation
redtimer copied to clipboard

Can't use API if site require basic auth (401 Unauthorized)

Open QuAzI opened this issue 8 years ago • 2 comments

We use specific apache authentication to protect CRM from world and Redtimer can't work with it because "401 Unauthorized" returned from server. Is any workaround available?

Apache configuration

Listen *:3000
<VirtualHost *:3000>
    DocumentRoot /var/www
    PassengerAppRoot /var/www/redmine
    Alias /redmine/ "/var/www/redmine/public/"
    RailsEnv production
    RailsBaseURI /redmine

   <Directory "/">
        AllowOverride AuthConfig

        AuthType Basic
        AuthName "Authentication Required"
        AuthBasicProvider file
        AuthUserFile /var/www/redmine/.htpasswd
        Require valid-user
        Satisfy Any

        Order allow,deny
    </Directory>

    <Directory "/var/www/redmine/public/">
        Options -Indexes -ExecCGI FollowSymLinks
        AllowOverride AuthConfig
        Order allow,deny
        Allow from all
    </Directory>
</VirtualHost>

QuAzI avatar Jul 11 '17 19:07 QuAzI

Hi @QuAzI

Thanks for your suggestion. HTTP basic authentication is not supported yet but I will add it soon.

Best regards Frederick Thomssen

fathomssen avatar Jul 12 '17 08:07 fathomssen

https://doc.qt.io/qt-5.9/qnetworkaccessmanager.html#authenticationRequired

fathomssen avatar Jul 12 '17 08:07 fathomssen