cube-js / cube

📊 Cube — The Semantic Layer for Building Data Applications
https://cube.dev
Other
17.76k stars 1.76k forks source link

Using SQL API the extendContext function does not get the securityContext created in checkSqlAuth #7415

Open giacomochiarella opened 10 months ago

giacomochiarella commented 10 months ago

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:

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

igorlukanin commented 9 months ago

Thanks for posting this, @giacomochiarella 👋 I think this is a known limitation.

HaidarZ commented 8 months ago

+1 I cannot neither read the securityContext from the contextToAppId nor from inside the asyncModule via the COMPILE_CONTEXT