# How to implement universal logout?

**URL:** <https://community.auth0.com/t/how-to-implement-universal-logout/71286>\
**Category:** Get Help\
**Tags:** logout\
**Created:** [October 14, 2021, 3:05am UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286 "2021-10-14T03:05:31Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gani/32/13308_2.png) [@gani](https://community.auth0.com/u/gani)\
**Post date:** [October 14, 2021, 3:05am UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286/1 "2021-10-14T03:05:31Z")

</div>

**We have clients that use Spotfire on their machines (separate credentials from Auth0) and what happens when they login to Auth0 is that they get signed in to Spotfire via Auth0 credentials. But when they Sign Out from Auth0, they’re not signed out from Spotfire license/credentials – is there a way to ensure they get signed out from Spotfire/Auth0?**

- **“auth0/login”: “^5.0”**
- **Laravel Framework**

* * *

public function logout()  
{  
Auth::logout();

```
    $logoutUrl = sprintf(
        'https://%s/v2/logout?federated&client_id=%s&returnTo=%s',
        config('laravel-auth0.domain'),
        config('laravel-auth0.client_id'),
        config('app.url')
    );

    return Redirect::intended($logoutUrl);

    return redirect()->route('home');
}

```

\*\*  
[https://github.com/auth0-samples/auth0-laravel-php-web-app/tree/master/01-Login](https://github.com/auth0-samples/auth0-laravel-php-web-app/tree/master/01-Login)

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 14, 2021, 9:10am UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286/2 "2021-10-14T09:10:55Z")

</div>

Hey there!

I think the most effective way of figuring that out would be to reach out directly to repo maintainers via GitHub issue so they can suggest you the best path forward. Once you create it you can share the link to it here so we can ping them. Thank you!

---

<div class="post-metadata">

**Author:** ![gani](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gani/32/13308_2.png) [@gani](https://community.auth0.com/u/gani)\
**Post date:** [October 18, 2021, 4:13am UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286/3 "2021-10-18T04:13:08Z")

</div>

> <https://github.com/auth0-samples/auth0-laravel-php-web-app/issues/105#issue-1028603492>
>
> We have clients that use Spotfire on their machines (separate credentials from A…uth0) and what happens when they login to Auth0 is that they get signed in to Spotfire via Auth0 credentials. But when they Sign Out from Auth0, they’re not signed out from Spotfire license/credentials – is there a way to ensure they get signed out from Spotfire/Auth0?
> 
> "auth0/login": "^5.0"
> Laravel Framework
> public function logout()
> {
> Auth::logout();
> 
> $logoutUrl = sprintf(
> 'https://%s/v2/logout?federated&client\_id=%s&returnTo=%s',
> config('laravel-auth0.domain'),
> config('laravel-auth0.client\_id'),
> config('app.url')
> );
> 
> return Redirect::intended($logoutUrl);
> 
> return redirect()-\>route('home');
> }

@konrad.sopala

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 18, 2021, 9:28am UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286/4 "2021-10-18T09:28:06Z")

</div>

Perfect! Thanks for doing that! Let me ping repo maintainers about it in a minute!

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [October 28, 2021, 12:06pm UTC](https://community.auth0.com/t/how-to-implement-universal-logout/71286/5 "2021-10-28T12:06:20Z")

</div>


