Hello,
I use web2py (2.16.1) on 2 environments:
1. Embedded Rocket wsgi server
2. Deployed on nginx+uwsgi
I have the same application on both env, connected to the same database.
The application uses Basic Authentication, like in the example:
def f1():
auth.basic()
if auth.user:
## do something ...
else:
## raise defined auth exception
What is strange, the problem occures only on nginx+uwsgi:
1. If I call it without basic authorization it will raise defined exception correctly
2. The problem is when I put header with correct authorization - it raises Internal error Ticked issued: uncoverable, and there is no any traces in logs.
The solution is putting session.forget() before auth.basic(), but why?
Could someone explain me the impact of session.forget() for that behaviour?
According documentation it is used to avoid storing session ( and it is understandable)
Regards,
Tomasz