freebuu / authentik-forward-auth
Authentik forward auth package for Laravel
Installs: 4
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 0
Open Issues: 0
Type:package
pkg:composer/freebuu/authentik-forward-auth
Requires
- php: ^8.1
- illuminate/auth: ^9.0 | ^10.0 | ^11.0 | ^12.0
- illuminate/support: ^9.0 | ^10.0 | ^11.0 | ^12.0
Requires (Dev)
- laravel/pint: ^1.0
- orchestra/testbench: ^7.0 | ^8.0 | ^9.0 | ^10.0
- phpunit/phpunit: ^9.6| ^10.0 | ^11.0
README
Laravel guard + user provider for Authentik Forward Auth.
Install
composer require freebuu/authentik-forward-auth
Simple configuration
- Read article for Authentik configuration.
- Add a guard + provider to
config/auth.php:
// config/auth.php 'guards' => [ //...other guards 'authentik' => [ 'driver' => 'authentik', 'provider' => 'authentik_generic', ], ], 'providers' => [ //...other providers... 'authentik_generic' => [ 'driver' => 'eloquent_authentik', ], ],
All done, you can now use the guard as auth:authentik in middlewre.
With this configuration you receive AuthentikUser from auth('authentik')->user()
Eloquent
To be continued...