Replies: 1 comment 11 replies
-
Thanks for the suggestion. Handling user password and switch id is planned to be able to ensure everything is good for access. I like your idea of passthrough though... Let me think about something nice and quick to implement. Again thank for the suggestion, do not hesitate to star the repo to show your support! |
Beta Was this translation helpful? Give feedback.
11 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
Thanks for the Tinfoil shop solution! Since public shops are all down, I am looking to start a shop that won't be super huge or anything, but I would like to implement simple authentication options. I can implement my own basic auth no problem, and that way user and passwords can be set within tinfoil on the client side to access the shop, however is there a way you can implement passthrough of basic auth credentials into the tinfoil server so that it can be verified with a Device ID?
I'd essentially like to make sure a basic auth credential wouldn't be able to be shared among multiple devices, so that I can associate one or two device IDs to a basic auth credential.
Maybe something like below:
username, password, ok := r.BasicAuth()
so that they can be inserted into a mongo/redis/sql database along with the uid, and a simple check of if all 3 don't match then deny access?
Beta Was this translation helpful? Give feedback.
All reactions