This repository has been archived by the owner on Dec 14, 2017. It is now read-only.
Adding a sample custom user service with FIDO U2F #313
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've recently starting looking into FIDO U2F and how this might be used as an additional option for 2FA within our (my company's) existing implementation of IdentityServer3.
I came across the following thread on the issue tracker: IdentityServer/IdentityServer3#2121 and thought it would be a good idea to create a new sample that shows how this can achieved so that others can get an idea (as well as helping me learn about U2F at the same time!).
The project was initiated by creating a copy of the existing CustomUserService, so generally speaking it follows a similar structure to that.
For the actual U2F implementation, I've used the OSS library https://github.com/brucedog/u2flib, including some of the view/controller functionality provided within the demo site there.
It only works on Google Chrome at this time as that's the only browser that supports FIDO U2F currently, and I've tested it with the Yubikey Neo - unfortunately that's the only device I have at my disposal.
I've provided a readme file with some of the above detail in also.
Hope you find this useful!