Samyoul / U2F-php-server

Server-side handling of U2F registration and authentication for PHP
BSD 2-Clause "Simplified" License
35 stars 7 forks source link

Login Button No Action #7

Open mitz-20 opened 4 years ago

mitz-20 commented 4 years ago

Thanks for U2F Nice implementation. I tried the same in my own nginx,centos 7 using repository . Got stuck up at login screen. I have place u2fap.js in my PDO-Without-AJAX folder, got all dependencies i.e vendor through composer install and have sqlite installed with two tables users & registration. Kindly guide in resolving issue. Att screenshot of login window. Thanks Again.

Mitz Screenshot from 2020-02-02 21-11-04

Samyoul commented 4 years ago

Hi Mitz. Are you trying to run the example here https://github.com/Samyoul/U2F-php-server-examples ?

Where are you getting stuck? Does your console log give you any feedback?

mitz-20 commented 4 years ago

Thanks for the reply,

I am newbie and implementing this U2F for one of my academic project as part of masters.

Yes, i am trying to run U2F-PHP-Server-Examples.

I am stuck at login screen, i am able to see three default users i.e Samyoul,donkey & Shrek. But after entering on of them and clicking login, it does not go further for registration.

I intend to do registration of my yubico security key (i have bought two of them for testing) with username.

I have created database, by going to mysql -u root -p (XXXX) and tables users and registration were created.

There is some steps,which i am missing, in case more info required ,do let me know, will provide for debug.

Kindly give some steps to look into console log, trying to google also.

Thanks again

Mitz

On Mon, Feb 3, 2020 at 7:04 PM Samuel Hawksby-Robinson < notifications@github.com> wrote:

Hi Mitz. Are you trying to run the example here https://github.com/Samyoul/U2F-php-server-examples ?

Where are you getting stuck? Does your console log give you any feedback?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Samyoul/U2F-php-server/issues/7?email_source=notifications&email_token=AOLHF52Z234MLMM44BUDAQLRBAMPJA5CNFSM4KO2MBC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEKT3ILI#issuecomment-581415981, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOLHF53U62I6GY72UISTGUDRBAMPJANCNFSM4KO2MBCQ .

Samyoul commented 4 years ago

Hey, Ok. It seems like you have a lot to understand. That's ok, I'll show you how to view your console.

If you're using google chrome open your chrome devtools : https://developers.google.com/web/tools/chrome-devtools/open

Then you need to open the console option : https://developers.google.com/web/tools/chrome-devtools/console

mitz-20 commented 4 years ago

Hi samyoul,

Thanks for reply.

Took some time to learn console feature completely and made some way ahead. Now i am able to login with some default user. But not able to register my youbico security key. Checked console.log and got following error

"TypeError: U2F.register_impl requires at least 4 arguments, but only 3 were passed u2f-registration.php:37:13 Signatures:
Array [] u2f-registration.php:31:10 Registration Request:
Object { version: "U2F_V2", challenge: "nqfaK9Z71cQ6Y-HHl7WJwU7WVy_s6cgkmcRx5FBdR5Y", appId: "https://localhost" } "

It indicated one more argument for u2f.register_impl. Please find attached screenshot of the Registration page with console.log screen.

Thanks again.

Mitz register_screen_error