Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

request signing proof-of-concept#1808

Draft
xavdid wants to merge 4 commits into
master from
request-signing-poc
Draft

request signing proof-of-concept #1808
xavdid wants to merge 4 commits into
master from
request-signing-poc

Conversation

@xavdid

@xavdid xavdid commented May 11, 2026

Copy link
Copy Markdown
Member

Why?

We're exploring adding supporting cryptographic signing of API requests (instead of using API keys). This PR is a basic proof of concept for the cryptographic primitives and top-level UX.

from pathlib import Path
from stripe import StripeClient
PUB_KEY_ID = "keyid_test_123"
PRIV_KEY_LOCATION = "/some/path/to/a/secp256r1-key.pem"
client = StripeClient(
 signing_keys={
 "key_id": PUB_KEY_ID,
 "private_key": Path(PRIV_KEY_LOCATION).read_text(),
 },
)
customers = client.v1.customers.list()
print(customers)

See #api-key-request-signing for more info.

What?

  • Implemented the request signing algorithm per this doc

See Also

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /