<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[[How?] Laravel native Auth with FusionAuth]]></title><description><![CDATA[<p dir="auto">I am using FusionAuth with Laravel quite differently than as example in official blog.<br />
I am using FusionAuth hosted pages and OAuth flow.</p>
<ul>
<li>
<p dir="auto">guest are redirected to fusionauth login page from where they are redirected to <a href="http://myapp.com/callback?code=xxx" rel="nofollow ugc">myapp.com/callback?code=xxx</a> on successful login.</p>
</li>
<li>
<p dir="auto">backend exchange the authorization code for token with fusionAuth,<br />
if successful: then either creates a new user entry in app DB with UUID given by fusionauth or fetches user entry (if already exist). and set a user session.<br />
if fails: throws 401 unauthorized error.</p>
</li>
<li>
<p dir="auto">App doesn't store or use the authorization code after that, the user stays logged in as long as session is alive irrespective of FusionAuth SSO session or authorization code life time.</p>
</li>
</ul>
<p dir="auto">Is there any better way to implement SSO where fusionAuth's sessions also stays alive along with app's session? and where I can implement logout from all devices mechanism.</p>
<p dir="auto">Laravel has inbuilt support for logoutFromOtherDevices in its Auth facade but we have already replaced Auth:: with self created sessions to use FusionAuth, can't we use fusionAuth with laravel Auth facade to utilize most of its features? or my apprch is wrong? Please correct me.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/695/how-laravel-native-auth-with-fusionauth</link><generator>RSS for Node</generator><lastBuildDate>Thu, 16 Apr 2026 14:37:36 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/695.rss" rel="self" type="application/rss+xml"/><pubDate>Sun, 27 Dec 2020 23:43:59 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to [How?] Laravel native Auth with FusionAuth on Tue, 05 Jan 2021 03:57:17 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/507">@chirag</a> have you seen these? <a href="https://fusionauth.io/learn/expert-advice/authentication/login-authentication-workflows/" rel="nofollow ugc">https://fusionauth.io/learn/expert-advice/authentication/login-authentication-workflows/</a></p>
<p dir="auto">Reviewing them and mapping your use case on to them may be helpful.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2096</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2096</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Tue, 05 Jan 2021 03:57:17 GMT</pubDate></item><item><title><![CDATA[Reply to [How?] Laravel native Auth with FusionAuth on Mon, 28 Dec 2020 08:26:39 GMT]]></title><description><![CDATA[<p dir="auto">The <em>logout from other devices</em> functionality is based on access and refresh tokens. To implement it, you should configure access tokens to be short lived, and restrict access in your services backend only to users that authorize themselves with a valid access token. Since the tokens are short lived, your applications will require refresh tokens to obtain new access tokens when the old ones expire.</p>
<p dir="auto">With such preconditions fulfilled, the <em>logout form other devices</em> functionality is all about revoking the refresh tokens provided for other devices. The other devices will still be able to utilize the session, but no longer than access token validity period (that cannot be revoked). Once it expires, they will try to obtain new one using the refresh token but this request will be denied - at this point, the device can be considered logged out.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2059</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2059</guid><dc:creator><![CDATA[mgetka]]></dc:creator><pubDate>Mon, 28 Dec 2020 08:26:39 GMT</pubDate></item></channel></rss>