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

Protect page editing with a password #7

Closed
bndn opened this issue Feb 1, 2013 · 4 comments
Closed

Protect page editing with a password #7

bndn opened this issue Feb 1, 2013 · 4 comments
Labels

Comments

@bndn
Copy link
Collaborator

bndn commented Feb 1, 2013

Write a user and a password at the top of the textarea to protect the page from editing with a HTTP Basic Auth.
A solution with one line :

user: my_username, password: my_password
content of the file…

A solution with a YAML Front Matter like Jekyll :


---
user: my_username
password: my_password

---
content of the file…

These credentials must be invisible from all others representations.

@sunny
Copy link
Owner

sunny commented Feb 1, 2013

There's a problem with the fact that edith saves at every keystroke: when do you start asking for a password?

I like the YAML Front Matter syntax though, it could be extensible.

@bndn
Copy link
Collaborator Author

bndn commented Feb 2, 2013

Good question. I think it’s easier for the user that the auth dialog box appears only when he reloads the editing page, not immediately after setting the credentials.

@sunny
Copy link
Owner

sunny commented Feb 14, 2013

This makes it hard to implement because the Ajax requests still need to go through un-authenticated. We would need to stop saving while you're typing a password.

I think we would need to implement this on a different page (like /pagename/lock) or in a popup prompt where you can set a password. Anything that's not in the autosaving-textarea.

@sunny
Copy link
Owner

sunny commented Sep 3, 2023

Closing in favor of #24

@sunny sunny closed this as completed Sep 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants