share / share/sharedb

access the initial request in the database adapter

Open
#169 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

documentation
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

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.