Skip to content
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

Blockstack server-side validation #20

Merged
merged 1 commit into from
May 9, 2019
Merged

Conversation

wbobeirne
Copy link
Member

Closes #10.

What This Does

Actually validates the information the user sends us about their Blockstack account by decoding their auth token, and looking up the data on Blockstack's Atlas node. This is still somewhat trusted since we're using their node, but I think the risks are pretty low on this one.

In order to decode a ES256K json web token, I had to use the version of the package that's currently in a pull request. Once that's merged and updated, we can use a pypi version.

Steps to Test

Auth with blockstack and confirm it works! Hard to test the negative use case (Someone spoofing a login) without editing the code, but you can give that a shot too.

@wbobeirne wbobeirne merged commit d07bf06 into master May 9, 2019
@wbobeirne wbobeirne deleted the blockstack-validate branch May 9, 2019 18:00
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.

Server side Blockstack validation
1 participant