Using SQL API the extendContext function does not get the securityContext created in checkSqlAuth
Open
api:sql
backend:server
- Dominant language
- Rust
- Stars
- 20.8k
- Forks
- 2.1k
- Avg merge
- 1d 2h
- Merged PRs (30d)
- 181
Description
**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
Contributor guide
Assessment
This issue has not been assessed yet.