Skip to content
This repository has been archived by the owner on Jul 5, 2022. It is now read-only.

Problems with Challenge #46

Closed
ChrisWesterfield opened this issue Dec 2, 2015 · 2 comments
Closed

Problems with Challenge #46

ChrisWesterfield opened this issue Dec 2, 2015 · 2 comments

Comments

@ChrisWesterfield
Copy link

Hi,
I included this Library into my Symfony Project.
I used the Bundle:
https://github.com/darookee/u2f-two-factor-bundle
to work with it.
But it will not work.
Everytime I try to validate my Yubikey Neo 4 device I get the following message:

Error in U2F.php line 266:
No matching request found

This is the Part where it seems to break (within the U2F Library)

foreach ($requests as $req) {
      if( !is_object( $req ) ) {
        throw new \InvalidArgumentException('$requests of doAuthenticate() method only accepts array of object.');
  }
  if($req->keyHandle === $response->keyHandle && $req->challenge === $decodedClient->challenge) {
        break;
  }
  $req = null;
}
if($req === null) {
  throw new Error('No matching request found', ERR_NO_MATCHING_REQUEST );
}

What I could find out is, that the Challenge that the Library returns does not match the Challange that the Yubikey Returns.
I can't figure out what the Problem is.
As all Parts (the Bundle) just forward theire calls to the php-u2flib-server library.
Nothing more.
Please help.

@klali
Copy link
Member

klali commented Dec 2, 2015

First off, this works fine with a YubiKey 4 as well.
Can you use current git HEAD of this library (if nothing else so the lines match and you get any potential fixes)?
If you run the examples included in this library, does it work?

@ChrisWesterfield
Copy link
Author

I will try this and update the ticket

@klali klali closed this as completed Apr 20, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

No branches or pull requests

2 participants