WebAuthn icon indicating copy to clipboard operation
WebAuthn copied to clipboard

Example of Login Page

Open Cyberscitymaste opened this issue 2 years ago • 5 comments

Hallo iam Trying to implementat the Script need a Login Page with Mysql Database example Please

and a Register Page Please.

Cyberscitymaste avatar Jul 05 '23 08:07 Cyberscitymaste

Ist all there, but you need to make it pretty thouh https://github.com/lbuchs/WebAuthn/tree/master/_test

mkrasselt1 avatar Sep 14 '23 20:09 mkrasselt1

This one helped me a lot: https://dev.to/codeboxx/simple-php-webauthn-2h2b You have to save at least credentialId and credentialPublicKey in your database connected to the User-ID.

bwurst avatar Dec 08 '23 08:12 bwurst

Some basic instructions on implementation would have been great. Its not as simple as the author keeps writing everywhere lol.

Whip avatar Feb 01 '24 05:02 Whip

@Whip what do you need - don't understand? its a two step process, one is registering your webauthn device, one is authentication.

for registering you create the chanllenge for a given username, and use javascript to let that challenge be processed by the client, and storing the results on your server

for login its creating a challenge agein, and presenting the public keys of all accepted devices to the javascript again, so that it can interact with the browser.

okay, it might not be as easy to understand, because this example uses only get parameters instead of http post request - but the principe is the same

mkrasselt1 avatar Feb 01 '24 11:02 mkrasselt1

I'll be able to work it out but that's by understanding the example given in the _test. I don't think an average programmer can do this.

I'll try to create a PR for simplified instructions once I do it myself.

Whip avatar Feb 01 '24 13:02 Whip