René's URL Explorer Experiment


Title: feat: add JSON object support for ctx in token generation by samsternberg · Pull Request #237 · skyflowapi/skyflow-python · GitHub

Open Graph Title: feat: add JSON object support for ctx in token generation by samsternberg · Pull Request #237 · skyflowapi/skyflow-python

X Title: feat: add JSON object support for ctx in token generation by samsternberg · Pull Request #237 · skyflowapi/skyflow-python

Description: Summary Extends bearer token and signed data token generation to accept dict for the ctx field, in addition to the existing str type Enables structured context for conditional data access policies where ctx object keys map to Skyflow CEL policy variables (request.context.role, request.context.department, etc.) Adds _validate_and_resolve_ctx() with key validation (^[a-zA-Z0-9_]+$ for CEL compatibility) PyJWT's jwt.encode() natively serializes dict as a JSON object in JWT payload — no custom serialization needed New error messages: INVALID_CTX_TYPE, INVALID_CTX_MAP_KEY 14+ validation tests passing (None, empty string, valid string, empty dict, valid dict, invalid keys with hyphens/spaces/dots, invalid types int/list, mixed value types, nested objects) Updated README and samples with both string and dict ctx patterns Test plan All 14 _validate_and_resolve_ctx validation tests pass Full test suite with credentials.json (requires valid service account) Integration test with Skyflow backend using dict ctx in bearer token Verify JWT payload contains ctx as JSON object (not stringified) Resolves: SK-2681, DOCU-1440 🤖 Generated with Claude Code

Open Graph Description: Summary Extends bearer token and signed data token generation to accept dict for the ctx field, in addition to the existing str type Enables structured context for conditional data access policies...

X Description: Summary Extends bearer token and signed data token generation to accept dict for the ctx field, in addition to the existing str type Enables structured context for conditional data access policies...

Opengraph URL: https://github.com/skyflowapi/skyflow-python/pull/237

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf
route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:5804c83f-b5ea-60ed-724f-c8e66cba58b1
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id8652:21EE7C:494D54:65A71B:6AF84302
html-safe-noncec9b8ad91a96b0d67d876542f55b7fc8ac9b935aaa2f0daf29bc0d0692fb79dec
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NjUyOjIxRUU3Qzo0OTRENTQ6NjVBNzFCOjZBRjg0MzAyIiwidmlzaXRvcl9pZCI6IjI4MzI1OTU1Njg0Njk0OTI0ODIiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacc2e60adc5a1b13284b58d346805e44e48a6038c6209d5878d90ad115fbfd39f8
hovercard-subject-tagpull_request:3468146651
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/skyflowapi/skyflow-python/pull/237/files
twitter:imagehttps://avatars.githubusercontent.com/u/137533184?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/137533184?s=400&v=4
og:image:altSummary Extends bearer token and signed data token generation to accept dict for the ctx field, in addition to the existing str type Enables structured context for conditional data access policies...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
None5713ecd83001b2f55c3509fb7a292bf7d66d0f167c7ae87a9f7eaec5a52bf8db
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/skyflowapi/skyflow-python git https://github.com/skyflowapi/skyflow-python.git
octolytics-dimension-user_id72233674
octolytics-dimension-user_loginskyflowapi
octolytics-dimension-repository_id416989700
octolytics-dimension-repository_nwoskyflowapi/skyflow-python
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id416989700
octolytics-dimension-repository_network_root_nwoskyflowapi/skyflow-python
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release653be32ff5c755082a4db662491bfbbcfc9112c1
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/skyflowapi/skyflow-python/pull/237/files#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fskyflowapi%2Fskyflow-python%2Fpull%2F237%2Ffiles
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fskyflowapi%2Fskyflow-python%2Fpull%2F237%2Ffiles
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=skyflowapi%2Fskyflow-python
Reloadhttps://github.com/skyflowapi/skyflow-python/pull/237/files
Reloadhttps://github.com/skyflowapi/skyflow-python/pull/237/files
Reloadhttps://github.com/skyflowapi/skyflow-python/pull/237/files
skyflowapihttps://github.com/skyflowapi
skyflow-pythonhttps://github.com/skyflowapi/skyflow-python
Codehttps://github.com/skyflowapi/skyflow-python
Issues1 (1)https://github.com/skyflowapi/skyflow-python/issues
Pull requests9 (9)https://github.com/skyflowapi/skyflow-python/pulls
Actionshttps://github.com/skyflowapi/skyflow-python/actions
Projectshttps://github.com/skyflowapi/skyflow-python/projects
Security and qualityhttps://github.com/skyflowapi/skyflow-python/security
Insightshttps://github.com/skyflowapi/skyflow-python/pulse
Sign up for GitHub https://github.com/signup?return_to=%2Fskyflowapi%2Fskyflow-python%2Fissues%2Fnew%2Fchoose
terms of servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fskyflowapi%2Fskyflow-python%2Fissues%2Fnew%2Fchoose
samsternberghttps://github.com/samsternberg
skyflowapi:mainhttps://github.com/skyflowapi/skyflow-python/tree/main
samsternberg:feat/ctx-json-object-supporthttps://github.com/samsternberg/skyflow-python/tree/feat/ctx-json-object-support
Conversation 0 https://github.com/skyflowapi/skyflow-python/pull/237
Commits 1 https://github.com/skyflowapi/skyflow-python/pull/237/commits
Checks 6 https://github.com/skyflowapi/skyflow-python/pull/237/checks
Files changed https://github.com/skyflowapi/skyflow-python/pull/237/files
Please reload this pagehttps://github.com/skyflowapi/skyflow-python/pull/237/files
feat: add JSON object support for ctx in token generation https://github.com/skyflowapi/skyflow-python/pull/237/files#top
Show all changes 1 commit https://github.com/skyflowapi/skyflow-python/pull/237/files
e72b31a feat: add JSON object support for ctx field in bearer token and signe… samsternberg Mar 30, 2026 https://github.com/skyflowapi/skyflow-python/pull/237/commits/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756
Clear filters https://github.com/skyflowapi/skyflow-python/pull/237/files
Please reload this pagehttps://github.com/skyflowapi/skyflow-python/pull/237/files
Please reload this pagehttps://github.com/skyflowapi/skyflow-python/pull/237/files
README.md https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
signed_token_generation_example.py https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b3047af1c947bd771ba255762a00fdefbef27263ccf6b28b6262df72e232e0e7
token_generation_with_context_example.py https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-61645d826882c18f18daafb9be9720aff318587dd60c97ad07728dd875df9ca5
_utils.py https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
_skyflow_messages.py https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-ca6aef9f7d732ba307852b80be10233670eb5fcf6721435891ea24b30d098f36
test__utils.py https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-a9d5c68ff9e554e2c2b4d13559f9acd0bb1200a62faba0e512f34a9f9155b323
README.mdhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/README.md
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b335630551682c19a781afebcf4d07bf978fb1f8ac04c6bf87428ed5106870f5
samples/service_account/signed_token_generation_example.pyhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b3047af1c947bd771ba255762a00fdefbef27263ccf6b28b6262df72e232e0e7
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/samples/service_account/signed_token_generation_example.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-b3047af1c947bd771ba255762a00fdefbef27263ccf6b28b6262df72e232e0e7
samples/service_account/token_generation_with_context_example.pyhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-61645d826882c18f18daafb9be9720aff318587dd60c97ad07728dd875df9ca5
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/samples/service_account/token_generation_with_context_example.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-61645d826882c18f18daafb9be9720aff318587dd60c97ad07728dd875df9ca5
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-61645d826882c18f18daafb9be9720aff318587dd60c97ad07728dd875df9ca5
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-61645d826882c18f18daafb9be9720aff318587dd60c97ad07728dd875df9ca5
skyflow/service_account/_utils.pyhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/skyflow/service_account/_utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-fc2059e9e9d0a5c72a8ae9122b36249aa26eb11de455130db5dc9b4604cbdb98
skyflow/utils/_skyflow_messages.pyhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-ca6aef9f7d732ba307852b80be10233670eb5fcf6721435891ea24b30d098f36
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/skyflow/utils/_skyflow_messages.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-ca6aef9f7d732ba307852b80be10233670eb5fcf6721435891ea24b30d098f36
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-ca6aef9f7d732ba307852b80be10233670eb5fcf6721435891ea24b30d098f36
tests/service_account/test__utils.pyhttps://github.com/skyflowapi/skyflow-python/pull/237/files#diff-a9d5c68ff9e554e2c2b4d13559f9acd0bb1200a62faba0e512f34a9f9155b323
View file https://github.com/samsternberg/skyflow-python/blob/e72b31a1c4244b48a4ca91f1ae2dfa19a002b756/tests/service_account/test__utils.py
Open in desktop https://desktop.github.com
https://github.co/hiddenchars
https://github.com/skyflowapi/skyflow-python/pull/237/{{ revealButtonHref }}
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-a9d5c68ff9e554e2c2b4d13559f9acd0bb1200a62faba0e512f34a9f9155b323
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-a9d5c68ff9e554e2c2b4d13559f9acd0bb1200a62faba0e512f34a9f9155b323
https://github.com/skyflowapi/skyflow-python/pull/237/files#diff-a9d5c68ff9e554e2c2b4d13559f9acd0bb1200a62faba0e512f34a9f9155b323
Please reload this pagehttps://github.com/skyflowapi/skyflow-python/pull/237/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.