Skip to content

Adapt site resolution/lookup to pass visitor unsigned claims in addition to token #3202

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

spastorelli
Copy link
Contributor

@spastorelli spastorelli commented Apr 30, 2025

This PR aims to add site resolution/lookup to pass visitor unsigned claims in addition to token when calling getPublishedContentByUrl. The unsigned claims can originate either from a gitbook-visitor-public-* cookie or visitor.* query parameters passed to the site url.

Pending https://github.com/GitbookIO/gitbook-x/pull/17625 to be merged.

TODO:

  • add method to extracts unsigned claims from public cookie or url param and another one that return an object with both token and unassigned to be passed to getPublishedContentByUrl call
  • update getPublishedContentByUrl calls to pass the retrieved visitor payload (token + unsigned claims)

Copy link

changeset-bot bot commented Apr 30, 2025

⚠️ No Changeset found

Latest commit: 44c35c0

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link

argos-ci bot commented Apr 30, 2025

The latest updates on your projects. Learn more about Argos notifications ↗︎

Build Status Details Updated (UTC)
customers-v1 (Inspect) ✅ No changes detected - Apr 30, 2025, 5:23 PM
customers-v2 (Inspect) 👍 Changes approved 79 changed Apr 30, 2025, 5:25 PM
default (Inspect) 👍 Changes approved 1 changed Apr 30, 2025, 5:28 PM
v2-vercel (Inspect) 👍 Changes approved 1 changed Apr 30, 2025, 6:50 PM

@spastorelli spastorelli changed the title Adapt site resolution/lookup to pass visitor unsigned claims in addition to token when calling getPublishedContentByUrl Adapt site resolution/lookup to pass visitor unsigned claims in addition to token Apr 30, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant