Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for PUT/DELETE http methods #140

Open
GoogleCodeExporter opened this issue Aug 28, 2015 · 2 comments
Open

Support for PUT/DELETE http methods #140

GoogleCodeExporter opened this issue Aug 28, 2015 · 2 comments

Comments

@GoogleCodeExporter
Copy link

GoogleCodeExporter commented Aug 28, 2015

Mongoose requires setting PUT_DELETE_PASSWORDS_FILE option (.htpasswd file with username/password) and later when performing PUT/DELETE request these credentials must be included in headers.

A new option in settings.json "put_delete_password_file" with two possible values:
a) A path to "/.htpasswd" file
b) Value of "no-password-file-required" - this would require modification in mongoose.c so that password is not required for PUT/DELETE requests.

An example .htpasswd file, from Mongoose UserManual:

    ### global\_auth\_file
    Path to a global passwords file, either full path or relative to the current
    working directory. If set, per-directory `.htpasswd` files are ignored,
    and all requests are authorised against that file.

The file has to include the realm set through authentication_domain and the password in digest format:

        user:realm:digest
        test:test.com:ce0220efc2dd2fad6185e1f1af5a4327

Htpasswd generator: http://www.askapache.com/online-tools/htpasswd-generator

Topic for reference: https://groups.google.com/d/topic/phpdesktop/x5TPLUSdc4w/discussion

@annettaws
Copy link

Hi,
but this issue i solved with the .htpasswd ?
I try to set it on the settings.json file but nothing happend. Could you give me an example?

@noelaamanda
Copy link

Please has this issue been solved? I have the same problem.

Repository owner deleted a comment from GoogleCodeExporter Aug 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants