Closed igorlukanin closed 1 month ago
Hey @ovr @igorlukanin Has there been any work on this issue yet? Are there any workarounds?
Are there any updates on this bug?
There's no ETA that I can share as of now. I recommend switching your cube.py
to cube.js
syntax as a workaround; you'll be able to convert it to Python when this issue is resolved.
@jcarlos92 @sabinevidal FYI, we have fixed this one in the linked PR and this is going to land in the next release. Please stay tuned!
I've just tested this with Cube v0.36.2 and it works as expected. Closing as resolved then.
Describe the bug Apparently, assigning to security context works in
check_auth
in JavaScript but doesn't work in Python.To Reproduce Run the following
cube.py
snippet:Result:
Expected behavior Assigning to security context works in Python, 42 is printed as
user_id
inside the security context.Version: 0.35.10
Additional context We can fix this in a backwards-compatible way as follows:
check_sql_auth
, support returning security context fromcheck_auth
both in JavaScript and Python.