Hello!
I use:
py4web __version__ = "1.20220725.2" from github
line 124 from py4web/utils/url_signer.py
print("on_request", self.session.get("_signature_key"))
(also, for historical reasons, I use the wsgiref server in my applications)
-----------------------------------------------------------------------------------
I will explain why I use the url2_signer = URLSigner(lifespan=3600, )
The left_menu.py file uses a URL, a function outside the controller,
and if I tried to make a signature using url_signer = URLSigner(session, lifespan=3600,) ,
I received messages something like "context error .... outside context .... etc"
(this signature ( url2_signer = URLSigner(lifespan=3600, )
doesn't make much sense, I just wanted to see how the signature works without a session)
about y4web/utils/url_signer.py
I looked at this file for a long time and my signature did not work ....
then suddenly everything took and worked
after I started using lines
@action.uses(url_signer.verify())
@action.uses(url_signer, session)