cube
cube copied to clipboard
Using SQL API the extendContext function does not get the securityContext created in checkSqlAuth
Describe the bug Hi everyone! Iām using the same cube.js file but Iām getting different results when I access to the securityContext in extendContext function:
- if I use the rest api I get a big object with securityContext attribute
- if I login through dbeaver I get only { id: ād8ce5857-500d-4c10-a9fb-40408cc9986c-span-1ā, meta: null }
in checkSqlAuth Iām returning a securityContext like: return { password: password, securityContext: securityContext };
To Reproduce just login through SQL API and print the context in extendContext function
Version: 0.34.7
Thanks for posting this, @giacomochiarella š I think this is a known limitation.
+1
I cannot neither read the securityContext from the contextToAppId
nor from inside the asyncModule
via the COMPILE_CONTEXT