Default Logout Bevahior
As there is no way to override default login, i couldnt implement this government socialite provider. This is really sad.
Here is my code
15 Replies
add admin at the beginning of your route
Route::post('/admin/logout', [LogoutController::class, 'logout'])->name('filament.admin.auth.logout');
that method is keep loginout to this url https://developer.gov.mv/efaas
Efaas - Your key to a digital Maldives
eFaas is the Maldives' National Digital Identity, enabling you to identify yourself in-person and online, unlocking a world of digital possibilities.
as it should redirect to https://fwd.host/http://students-parents-portal.test
Could you create a minimal repo on github to reproduce the issue?
@shaan you can create your own
LogoutResponse
and bind this via a service provider:
$this->app->bind(LogoutResponse::class, YourLogoutResponse::class);
Nope, It doesnt work, when i tried to dd the id_token, it gets null.
However, in the above logout controller, it does work
now the issue is it doesnt redirect to tjat url, it redirects to this url https://developer.gov.mv/efaas
Efaas - Your key to a digital Maldives
eFaas is the Maldives' National Digital Identity, enabling you to identify yourself in-person and online, unlocking a world of digital possibilities.
Can't check if you don't provide any code for that.
Sounds like that's related to the Socialite driver.
`
this is the callback
Where is
callback()
used?
this is in web.php
If this code
return Socialite::driver('efaas')->logOut($id_token, $post_logout_redirect_url);
doesn't redirect properly, I'd say check the Socialite provider.Im sorry. How? you mean the package? or efaas providers?
Yes.
If there's a magic redirect to https://developer.gov.mv/efaas, it's probably not from Filament 😅
Thanks A lot 😄
As you mentioned this is an issue with provider
that was the redirect issue
it was solved, however it should remove id token before logout