owtf
owtf copied to clipboard
Authentication handlers for API and web server
OWTF should provide authentication options for users to log in and securely run tests if OWTF is hosted on a public IP.
For a barebones implementation, we need:
- [ ] API handlers for register, login and logout functionality.
- [ ] Tokens for OWTF REST API (ideally JWT tokens)
- [ ] A way for users to create API tokens.
- [ ] Users, APITokens models and integration with current DB schema.
Reference:
- https://github.com/jupyter/notebook/blob/master/notebook/auth is a good reference implementation of the functionality (in Tornado).
- Some examples for JWT tokens: https://steelkiwi.com/blog/jwt-authorization-python-part-1-practise/, https://auth0.com/docs/quickstart/backend/python/01-authorization, https://github.com/paulorodriguesxv/tornado-json-web-token-jwt/blob/master/auth.py
Hello @viyatb, I would like to take up this issue.