[GH-ISSUE #62] How would one add authentication to sandman2 (either basic or oauth) (feature request) #40

Closed
opened 2026-02-26 01:32:58 +03:00 by kerem · 1 comment
Owner

Originally created by @tlawork on GitHub (Jun 5, 2017).
Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/62

How would you add authentication to sandman2?
I only want to allow one particular user with a token or huge password to be able to update or access the database.

---TODDL

Originally created by @tlawork on GitHub (Jun 5, 2017). Original GitHub issue: https://github.com/jeffknupp/sandman2/issues/62 How would you add authentication to sandman2? I only want to allow one particular user with a token or huge password to be able to update or access the database. ---TODDL
kerem closed this issue 2026-02-26 01:32:58 +03:00
Author
Owner

@ShyftXero commented on GitHub (Aug 11, 2017):

I am still looking into getting a functioning PR for basic http auth but in the meantime I have nginx running a proxy pass with htpasswd authentication
#added for sandman2ctl rest api location /api/ { proxy_pass http://localhost:3000/; auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/api.htpasswd; }
run sandman sandman2ctl -p 3000 <dbconnstring>

from these directions
https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04

<!-- gh-comment-id:321847207 --> @ShyftXero commented on GitHub (Aug 11, 2017): I am still looking into getting a functioning PR for basic http auth but in the meantime I have nginx running a proxy pass with htpasswd authentication ` #added for sandman2ctl rest api location /api/ { proxy_pass http://localhost:3000/; auth_basic "Restricted Content"; auth_basic_user_file /etc/nginx/api.htpasswd; }` run sandman sandman2ctl -p 3000 &lt;dbconnstring> from these directions [https://www.digitalocean.com/community/tutorials/how-to-set-up-password-authentication-with-nginx-on-ubuntu-14-04](url)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/sandman2-jeffknupp#40
No description provided.