cube icon indicating copy to clipboard operation
cube copied to clipboard

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

Open giacomochiarella opened this issue 1 year ago ā€¢ 2 comments

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

giacomochiarella avatar Nov 14 '23 11:11 giacomochiarella

Thanks for posting this, @giacomochiarella šŸ‘‹ I think this is a known limitation.

igorlukanin avatar Nov 30 '23 13:11 igorlukanin

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

HaidarZ avatar Jan 23 '24 16:01 HaidarZ