access the initial request in the database adapter
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 6.5k
- Forks
- 456
- Avg merge
- 1d 5h
- Merged PRs (30d)
- 5
Description
Is there any way to access the initial request inside the database adapter?
I'm building a custom adapter, because it talks over some internal APIs, and I'm not sure how to pass authentication/authorization information to the adapter so that it can forward them to the internal APIs.
If not, is there a workaround?
Edit: more specifically, I'm looking for a way to access the initial request inside getSnapshot and getOps, before they are called when a client first connects and loads a document.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing the custom database adapter entry points named in the issue, especially getSnapshot and getOps, and determine whether the initial request or its authentication context is available when they run. Done means there is a documented supported mechanism for forwarding that context, or a documented workaround if direct access is not possible.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend, databases
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100