© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•3y ago•
4 replies
Crayon

Different Auth Guard

I've been trying to integrate Filament with Auth0.

I am using Auth0 Laravel SDK: https://github.com/auth0/laravel-auth0

And I did setup my auth.php:

Guard
'auth0' => [
    'driver' => 'auth0.guard',
    'provider' => 'auth0-provider',
],
'auth0' => [
    'driver' => 'auth0.guard',
    'provider' => 'auth0-provider',
],

Provider
'auth0-provider' => [
    'driver' => 'auth0.provider',
    'repository' => UserRepository::class,
],
'auth0-provider' => [
    'driver' => 'auth0.provider',
    'repository' => UserRepository::class,
],


config/filament.php
'auth' => [
    'guard' => env('FILAMENT_AUTH_GUARD', 'auth0'),
    'pages' => [
        'login' => \App\Filament\Auth\Login::class,
    ],
],
'auth' => [
    'guard' => env('FILAMENT_AUTH_GUARD', 'auth0'),
    'pages' => [
        'login' => \App\Filament\Auth\Login::class,
    ],
],


And I tweaked the login logic a little bit. However, the problem now is the return type from the
Filament::auth()
Filament::auth()
should be
Illuminate\Contracts\Auth\Guard
Illuminate\Contracts\Auth\Guard
But Auth0 SDK returns
Auth0\Laravel\Auth\Guard
Auth0\Laravel\Auth\Guard
. Has anybody tried to switch the authentication logic to a tool like Auth0?
image.png
image.png
image.png
GitHub
GitHub - auth0/laravel-auth0: Laravel SDK for Auth0 Authentication ...
Laravel SDK for Auth0 Authentication and Management APIs. - GitHub - auth0/laravel-auth0: Laravel SDK for Auth0 Authentication and Management APIs.
GitHub - auth0/laravel-auth0: Laravel SDK for Auth0 Authentication ...
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources
Was this page helpful?

Similar Threads

Recent Announcements

Similar Threads

Filament auth guard logout
FilamentFFilament / ❓┊help
5mo ago
Testing custom auth guard
FilamentFFilament / ❓┊help
2y ago
Auth guard [] is not defined.
FilamentFFilament / ❓┊help
3y ago
What different `Filament::auth()->user()` & `auth()->user()`?
FilamentFFilament / ❓┊help
9mo ago