-
Notifications
You must be signed in to change notification settings - Fork 1
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
Update X-Stamp docs #65
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
docs/api-design/intro.md
Outdated
3. Create a JSON-encoded string with the appropriate properties depending on authenticator type: | ||
- If using an API Key, make a JSON-encoded string with public key, signature, and signature scheme | ||
- If using a WebAuthn Credential, make a JSON-encoded string with the authenticator data, client data, credential ID and signature | ||
4. Base64url encode this string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unfortunately this isn't consistent right now. Webauthn stamps aren't base64url encoded, but API key stamps are.
docs/api-design/intro.md
Outdated
- If using an API Key, make a JSON-encoded string with public key, signature, and signature scheme | ||
- If using a WebAuthn Credential, make a JSON-encoded string with the authenticator data, client data, credential ID and signature | ||
4. Base64url encode this string | ||
5. Add this string to your request as an X-Stamp header |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should mention the difference in naming: webauthn stamp should be passed as X-Stamp-Webauthn
header values, whereas API key stamps should be under X-Stamp
.
89efca2
to
d4ca992
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
⭐
lol @r-n-o that was fast! was just about to write a comment. thank you for all the helpful comments, helped w my own understanding too :) |
Noticed that #39 is stuck in a non-mergeable state. Closed that PR and added changes to this branch along with some fixes to Github links and wording.