wallabag / wallabagger

Chrome / Firefox / Opera plugin for wallabag v2.
http://wallabag.github.io/wallabagger/
MIT License
363 stars 48 forks source link

support wallabag server with basic auth #360

Open jeverling opened 10 months ago

jeverling commented 10 months ago

Hi, I would like to put my wallabag installation behind basic auth, as an additional security measure.

Right now, it seems like the extension doesn't support this, the URL doesn't get verified (without the username:password@ part in front of the domain it works fine).

It would be great if the extension supported connecting to https://username:password@wallabag.org.

kamalmjt commented 1 day ago

Same, i need the extension support basic auth for additional security.

kamalmjt commented 1 day ago

@jeverling I have done it by including authentication in the /api and /oauth routes.

Example config for nginx :


  location / {
                auth_basic "Clave Acceso";
                auth_basic_user_file /etc/nginx/.htpasswd;
                try_files $uri /app.php$is_args$args;
        }

 location /oauth/ {
                try_files $uri /app.php$is_args$args;
        }

        location /api/ {
                try_files $uri /app.php$is_args$args;
        }