- Python 2.7.X
- dependencies from requirements.txt
- Please run pip install -r requirements.txt. You dont need to create another DB. Its already in the repo.
- The application runs on Flask default port 5000, with debug enabled.
- You will need to authenticate first with the
/login
REST URI. Valid usernames and passwords includeadmin:admin123
andguest:guest123
Successful authentication gives you a valid JWT that lasts for the current time + 1 minute. - To validate a genuine JWT, you need to authenticate with the JWT issued from the
/login
URI to the/auth
URI with a GET request. You will need to use the HTTP HeaderAuthorization
with the Token value. - You can pass forged tokens to the app using the
/insecure_auth
URI. This does NOT verify the authenticity of the token, hence is an authentication bypass