Implementing authenticated Smart HTTP - which URLs to secure
- From
- Jonas H. <jonas@lophus.org>
- Date
- Jul 15, 2012, 13:43 UTC
- Message-ID
- <5002C8F3.6080400@lophus.org>
Howdy!
I'd like to implement HTTP authentication for Git Smart HTTP using Dulwich (a Python binding):
1) read-only if unauthenticated and write only if authenticated 2) read/write only if authenticated
I couldn't find any documentation on which URLs need be secured and what response codes are expected in case the cloner/pusher is unauthenticated.
Is there any documentation on Smart HTTP workflow? The C sources (vanilla Git and libgit2) didn't help me too much since I found it very difficult to follow the code-flow... it's probably just abstracted too well :-)
Thanks! Jonas