Question

I have a satis repository which connects the dots for my private bitbucket repositories. I want to be able to charge for access to this satis repository by sending over the applications (my base application uses Laravel) secret key and validate it against the users account. Is there a way to send over the key for me to validate?

regards

Was it helpful?

Solution

Satis is simply a script that compiles some files that can be hosted anywhere where static file hosting is available.

If you want to add access control, it is not a question of using Satis correctly, but implementing access control for static HTTP resources.

By the way: The only authentication protocol Composer offers is HTTP Authentication (aka ".htpasswd"), so if you want a sophisticated payment and access control, you have to implement something that would send 401 HTTP status codes, wait for a username/password and check if that account paid.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top