5 ms·
https://github.com/timothycrosley/hug/blob/develop/examples/authentication.py https://github.com/timothycrosley/hug/blob/develop/examples/...
by timothycrosley 11y ago
https://github.com/timothycrosley/hug/blob/develop/examples/authentication.py https://github.com/timothycrosley/hug/blob/develop/examples/...
- raarts 11y agoIs there a https example? Personally I think all examples online should use ssl by default these days. http should be banned altogether.
- timothycrosley 11y agoThat's not how things work when using any WSGI based framework, the SSL part should be handled by either uwsgi / gunicorn or nginx. Development servers (hug or Flask or any other) should basically never be used directly. Examples can, and should be done using HTTP to allow local testing.