cubicweb #2901363 add a ref to the publisher on the request [rejected]
this is sometime necessary, eg for accessing the session handler or the url resolved | |
priority | normal |
---|---|
type | enhancement |
done in | 3.20.0 |
load | 0.000 |
load left | 0.000 |
closed by | <not specified> |
patch | [web app] add a reference to the publisher on request. Closes #2901363 [rejected] |
Comments
-
2013/05/27 14:57, written by pydavid
-
2013/10/04 13:21, written by ddouard
-
2014/04/14 12:19, written by sthenault
-
2014/04/14 12:47, written by acampeas
-
2014/04/14 12:58, written by sthenault
-
2014/04/14 12:48, written by acampeas
-
2014/04/14 12:59, written by sthenault
add commentThis additional reference scare me a bit. Why is this necessary//making sense ?
Please provide a real use case
for my photo web site, I'm writing a cube allowing to send 'shareable url', eg unique urls that allow people who receive it to see something without having to login (explicitly). Other people can't see the same content.
To do so, I've to access to the session manager (along with hidden users created for each url) to open the session. I don't think I've any other option than to provide access to the publisher from the request to do so.
That looks a lot like a specific kind of signed request.
I'm afraid not. The only thing I want to send is an url. Clicking on it should do the necessary. Also, if when seeing the shared album the user click e.g. on photo to get it fullscreen, it should just work.
Care to share you code ?
https://bitbucket.org/sthenault/cubicweb-shareurl/
comments welcome (including alternative implementation ideas...)