https://github.com/adroit11/biometrics
https://github.com/adroit11/biometrics
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/adroit11/biometrics
- Owner: Adroit11
- License: mit
- Created: 2022-08-07T17:42:38.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-06T12:05:16.000Z (about 2 years ago)
- Last Synced: 2025-01-27T05:59:01.096Z (4 months ago)
- Language: Vue
- Size: 1.14 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 11
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Laravel-WebAuthn example application
====================================This is an example use of [asbiin/laravel-webauthn](https://github.com/asbiin/laravel-webauthn) package.
# Demo
Try this application on [this live demo app](https://laravel-webauthn-example.herokuapp.com/).
- Just register with any email
- Then add a WebAuthn key
- Next login will ask to confirm the key**Accounts are automatically deleted after 24h on this demo instance.**
## Deploy on heroku
You can also [](https://heroku.com/deploy?template=https://github.com/asbiin/laravel-webauthn-example/tree/main)
# Installation
In order to test the application, you need to:
* Clone this repository
* Install packages and configuration:
```sh
composer install
npm install
npm prod
cp .env.example .env
php artisan key:generate
```* Configure database.
You can use an sqlite database, just put `DB_CONNECTION=sqlite` in the `.env` file:
```sh
sed -i 's/\(DB_CONNECTION\)=.*/\1=sqlite/' .env
touch database/database.sqlite
```* Run a webserver
- You'll need to point you webserver to the `public` directory. Follow instructions on the [Laravel documentation](https://laravel.com/docs/installation#configuration).- WebAuthn protocol requires HTTPS mode, and forbid the `localhost` url.
- Use laravel serve command, and a tool like [ngrok](https://ngrok.com/):
1. `php artisan serve`
2. `ngrok http http://127.0.0.1:8000`
3. you can use the `https` version of the `ngrok` output# Usage
Got to `https://url.test/webauthn/register` to register a new key.
# License
Author: [Alexis Saettler](https://github.com/asbiin)
Copyright © 2019–2022.
Licensed under the MIT License. [View license](/LICENSE).