fathomssen / redtimer

RedTimer - Redmine Time Tracker
GNU Lesser General Public License v3.0
65 stars 17 forks source link

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

Open QuAzI opened 6 years ago

QuAzI commented 6 years ago

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>
fathomssen commented 6 years ago

Hi @QuAzI

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

Best regards Frederick Thomssen

fathomssen commented 6 years ago

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