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

A working implementation of ruby-u2f in Sinatra #7

Open
konklone opened this issue Jan 12, 2015 · 0 comments
Open

A working implementation of ruby-u2f in Sinatra #7

konklone opened this issue Jan 12, 2015 · 0 comments

Comments

@konklone
Copy link
Contributor

I just wanted to drop a note to point to my working implementation using ruby-u2f, which I have documented extensively:

https://github.com/konklone/konklone.com/pull/144

It may be helpful to you in developing this library. I'd also love to be shown where I may be making mistakes, or not fully understanding the problem.

I did need to make some changes from the example code shown, such as using as_json before to_json, and Base64-decoding the public key before passing it to the authenticate! step. I also added a lot more conditionals and error handling, and this may be a useful reference point for people going beyond Hello World.

@konklone konklone changed the title A working implementation in Sinatra A working implementation of ruby-u2f in Sinatra Jan 12, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant