Handle absence of anonymous user
Set cw_session and then cw_cnx request attributes to None in case anonymous
connection is not allowed (i.e. no "anon" user in config).
Then catch AuthenticationError in CubicWebPyramidHandler and return the 'login'
view.
Closes #4751862.
.. _profile_module:
:mod:`pyramid_cubicweb.profile`
===============================
.. automodule:: pyramid_cubicweb.profile
Views
-----
.. autofunction:: ping
.. autofunction:: cnx
WSGI
----
.. autofunction:: wsgi_profile