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

Example of Login Page #77

Open
Cyberscitymaste opened this issue Jul 5, 2023 · 5 comments
Open

Example of Login Page #77

Cyberscitymaste opened this issue Jul 5, 2023 · 5 comments
Labels
help wanted Extra attention is needed

Comments

@Cyberscitymaste
Copy link

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

and a Register Page Please.

@lbuchs lbuchs added the help wanted Extra attention is needed label Jul 10, 2023
@mkrasselt1
Copy link

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

@bwurst
Copy link

bwurst commented Dec 8, 2023

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.

@Whip
Copy link

Whip commented Feb 1, 2024

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

@mkrasselt1
Copy link

mkrasselt1 commented Feb 1, 2024

@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

@Whip
Copy link

Whip commented Feb 1, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

5 participants