analogrepublic / nova-duo
Nova Duo
Installs: 195
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 5
Forks: 0
Open Issues: 0
pkg:composer/analogrepublic/nova-duo
Requires
- php: ^8.0
- duosecurity/duo_universal_php: ^1.0
- laravel/nova: ^4.0
This package is auto-updated.
Last update: 2025-10-22 11:07:42 UTC
README
Nova Duo
Laravel Nova Duo multi factor authentication.
Install the package
composer require analogrepublic/nova-duo
- Publish config
php artisan vendor:publish --provider="AnalogRepublic\NovaDuo\ToolServiceProvider"
Change configs as your needs
return [
'enabled' => env('NOVA_DUO_ENABLED', true),
'duo' => [
'client_id' => env('NOVA_DUO_CLIENT_ID'),
'client_secret' => env('NOVA_DUO_CLIENT_SECRET'),
'api_hostname' => env('NOVA_DUO_API_HOSTNAME'),
]
];
- Add Nova Duo middleware to Nova config file
/*
|--------------------------------------------------------------------------
| Nova Route Middleware
|--------------------------------------------------------------------------
|
| These middleware will be assigned to every Nova route, giving you the
| chance to add your own middleware to this stack or override any of
| the existing middleware. Or, you can just stick with this stack.
|
*/
'middleware' => [
...
\AnalogRepublic\NovaDuo\Http\Middleware\TwoFa::class
],
- Register Nova Duo tool in Nova Service Provider
<?php
class NovaServiceProvider extends NovaApplicationServiceProvider{
public function tools()
{
return [
...
new \AnalogRepublic\NovaDuo\NovaDuo()
];
}
}
- You are done !