Pregunta

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

¿Fue útil?

Solución

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.

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top