{"id":13562940,"url":"https://github.com/lahaxearnaud/laravel-u2f","last_synced_at":"2026-01-15T03:52:39.116Z","repository":{"id":32156577,"uuid":"35729663","full_name":"lahaxearnaud/laravel-u2f","owner":"lahaxearnaud","description":"Laravel U2F support","archived":true,"fork":false,"pushed_at":"2021-06-10T14:45:30.000Z","size":137,"stargazers_count":52,"open_issues_count":4,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-05T11:50:22.710Z","etag":null,"topics":["laravel","laravel-5-package","laravel-6-package","laravel-u2f","php","security","u2f-key"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lahaxearnaud.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-16T15:47:50.000Z","updated_at":"2024-10-23T13:25:37.000Z","dependencies_parsed_at":"2022-07-12T16:09:39.550Z","dependency_job_id":null,"html_url":"https://github.com/lahaxearnaud/laravel-u2f","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/lahaxearnaud/laravel-u2f","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahaxearnaud%2Flaravel-u2f","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahaxearnaud%2Flaravel-u2f/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahaxearnaud%2Flaravel-u2f/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahaxearnaud%2Flaravel-u2f/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lahaxearnaud","download_url":"https://codeload.github.com/lahaxearnaud/laravel-u2f/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lahaxearnaud%2Flaravel-u2f/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419257,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["laravel","laravel-5-package","laravel-6-package","laravel-u2f","php","security","u2f-key"],"created_at":"2024-08-01T13:01:13.620Z","updated_at":"2026-01-15T03:52:39.100Z","avatar_url":"https://github.com/lahaxearnaud.png","language":"JavaScript","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"readme":"# laravel-u2f\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/lahaxearnaud/laravel-u2f/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/lahaxearnaud/laravel-u2f/?branch=master)\n[![SensioLabsInsight](https://insight.sensiolabs.com/projects/c85fa3f1-7854-4eec-932d-8ac625c1318c/mini.png)](https://insight.sensiolabs.com/projects/c85fa3f1-7854-4eec-932d-8ac625c1318c)\n\nThis PSR4 package provide u2f protocol integration in laravel 6 framework.\n\n\n## Requirements\n- A top level domain\n- HTTPS\n- PHP \u003e= 7.2 (If you want to use this package with php 5 you need to use the version v1.1.0)\n\n## Install\n\nVia Composer\n\n```bash\n$ composer require lahaxearnaud/laravel-u2f\n```\n\nLaravel 5.5+ uses Package Auto-Discovery, so doesn't require you to manually add the ServiceProvider.\n\n### Configs\n\n```bash\n$ php artisan vendor:publish --provider=\"Lahaxearnaud\\U2f\\U2fServiceProvider\" --tag=u2f-config\n```\n\n### Assets\n\n```bash\n$ php artisan vendor:publish --provider=\"Lahaxearnaud\\U2f\\U2fServiceProvider\" --tag=u2f-components\n```\n\n### Views\n\n```bash\n$ php artisan vendor:publish --provider=\"Lahaxearnaud\\U2f\\U2fServiceProvider\" --tag=u2f-views\n```\n\nNote that default views use Laravel's default Bootstrap 4. If you don't use it, you have to update the views.\n\n### Migrations\n\n```bash\n$ php artisan vendor:publish --provider=\"Lahaxearnaud\\U2f\\U2fServiceProvider\" --tag=u2f-migrations\n$ php artisan migrate\n```\n\n### Middleware\n\nIn the app/Http/Kernel.php file\n\n```php\n protected $routeMiddleware = [\n    'auth' =\u003e \\App\\Http\\Middleware\\Authenticate::class,\n    // ...\n    'u2f' =\u003e \\Lahaxearnaud\\U2f\\Http\\Middleware\\U2f::class,\n    ];\n```\n\n## Usage\n\nA [example project](https://github.com/lahaxearnaud/laravel-u2f-example) is available to help you with the configuration / usage.\n\n### Middleware\n\nIn the route.php file add the u2f middleware on your routes or groups:\n```php\nRoute::get('admin/profile', ['middleware' =\u003e ['auth', 'u2f'], function () {\n    //\n}]);\n```\n\nIn controller:\n\n```php\n/**\n * Create a new controller instance.\n *\n * @return void\n */\npublic function __construct()\n{\n    $this-\u003emiddleware(['auth', 'u2f']);\n}\n```\n\n### Configuration\n\n### Events\n\n- Name: `u2f.authentication`\n\n  Payload: `[ 'u2fKey' =\u003e $key, 'user' =\u003e Auth::user() ]`\n\n  Description: An user authenticate himself with a valid u2f key\n\n- Name: `u2f.register`\n\n  Payload `[ 'u2fKey' =\u003e $key, 'user' =\u003e Auth::user() ]`\n\n  Description: An user register a new u2f key\n\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Security\n\nIf you discover any security related issues, please email lahaxe[dot]arnaud[at]gmail[dot]com instead of using the issue tracker.\n\n## Credits\n\n- [Arnaud LAHAXE](https://github.com/lahaxearnaud)\n- [Mike Robinson](https://github.com/multiwebinc)\n- [Chakphanu Komasathit](https://github.com/chakphanu)\n- [Anne Jan Brouwer](https://github.com/annejan)\n- [Alexis Saettler](https://github.com/asbiin)\n- [Thomas Lété](https://github.com/bistory)\n- [Luca Bognolo](https://github.com/bogny)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## After coding\n\nWhat better way to relax, after spending hours coding, than a good [cocktail](https://cocktailand.fr) on the terrace?\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahaxearnaud%2Flaravel-u2f","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flahaxearnaud%2Flaravel-u2f","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flahaxearnaud%2Flaravel-u2f/lists"}