<?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[Cannot redirect to authorize page when fusionauth and front end app dockerized]]></title><description><![CDATA[<p dir="auto">I have run into an issue which I am not sure how to solve.</p>
<p dir="auto">Following the <a href="https://fusionauth.io/docs/quickstarts/quickstart-dotnet-web" rel="nofollow ugc">.NET sample application</a>, the docker-compose file is containerising the fusionauth instance and the database, while the .NET application is not dockerized.</p>
<p dir="auto">The appsettings.json sets the Authority to <a href="http://localhost:9011" rel="nofollow ugc">http://localhost:9011</a> and all works fine.</p>
<p dir="auto">But if you dockerize the .NET application as well, and include it in the same docker-compose file then there will be an issue with the login and logout functionality, because the Authority <a href="http://localhost:9011" rel="nofollow ugc">http://localhost:9011</a> will not be accessible.</p>
<p dir="auto"><img src="https://gcdnb.pbrd.co/images/w0MZNqOAzsVy.png?o=1" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">This is understandable because to let your containers speak to each other you need to use the container name set in the dockercompose. So if I change the Authority to <a href="http://fusionauth:9011" rel="nofollow ugc">http://fusionauth:9011</a> (my FusionAuth service in the dockercompose is named fusionauth), then when clicking login on the app you will see this.</p>
<p dir="auto"><img src="https://gcdnb.pbrd.co/images/MejY5W9lpeiS.png?o=1" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">So it cannot resolve the path for some reason. The odd thing is by manually updating the url from that image above to the below, it will work.</p>
<p dir="auto"><img src="https://gcdnb.pbrd.co/images/UlJWhYdHXhR0.png?o=1" alt="alt text" class=" img-fluid img-markdown" /></p>
<p dir="auto">But this only works when inputting the localhost manually and not when setting the Authority in the appsettings.json.</p>
]]></description><link>https://fusionauth.io/community/forum/topic/2587/cannot-redirect-to-authorize-page-when-fusionauth-and-front-end-app-dockerized</link><generator>RSS for Node</generator><lastBuildDate>Sat, 14 Mar 2026 14:23:32 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/2587.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 21 Dec 2023 13:48:58 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Thu, 28 Dec 2023 15:23:37 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2777">@ronn316</a> Awesome glad to see you got it working.  I'm sure there is a way to use a dns name, but like I mentioned before, someone with a little more docker experience would have to help us out here.  Thanks for working this through and sharing with the community.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6920</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6920</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Thu, 28 Dec 2023 15:23:37 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Thu, 28 Dec 2023 14:50:52 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> I came across a solution online. Changing the Authority in the webapp appsettings to the local machine IP address seemed to fix it.</p>
<pre><code>"Authority": "http://10.1.20.69:9011",
</code></pre>
<p dir="auto">I'm not sure I like this approach because my local IP probably isn't static. I would much rather localhost:9011 or fusionauth:9011 to work, but I don't understand networking enough to understand why they don't.</p>
<p dir="auto">Anyway this issue will only be occurring in development so I can deal with it. In production each app will be hosted separately so using the public domain name as the authority should work.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6919</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6919</guid><dc:creator><![CDATA[ronn316]]></dc:creator><pubDate>Thu, 28 Dec 2023 14:50:52 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Wed, 27 Dec 2023 18:19:56 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2777">@ronn316</a> Ok, so this looks like an issue with the "dockerized" .Net app not being able to see the "dockerized" FusionAuth app.  It sounds like a configuration issue with docker.  If you ping the fusionauth url from the .Net app container, it will likely returned not found.  You will need to figure out how to get that to resolve to the IP of the FusionAuth app container.  Once you figure that out, I would think it would work.  Unfortunately, I'm not familiar enough with docker network to figure that out.  Hopefully, someone else can chime in.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6913</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6913</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Wed, 27 Dec 2023 18:19:56 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Tue, 26 Dec 2023 18:56:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> yes it works just fine this way.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6911</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6911</guid><dc:creator><![CDATA[ronn316]]></dc:creator><pubDate>Tue, 26 Dec 2023 18:56:02 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Tue, 26 Dec 2023 18:45:48 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2777">@ronn316</a> Ok.  That makes sense.  So we can have a baseline, can you get the application to run as designed?  Meaning running the code on the local machine and having the FusionAuth application run in docker?</p>
]]></description><link>https://fusionauth.io/community/forum/post/6908</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6908</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Tue, 26 Dec 2023 18:45:48 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Tue, 26 Dec 2023 17:10:09 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2507">@mark-robustelli</a> not exactly, it's dockerized but in its own container. So fusionauth is running in one container and the .Net app in another. They're both in the same docker-compose though.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6906</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6906</guid><dc:creator><![CDATA[ronn316]]></dc:creator><pubDate>Tue, 26 Dec 2023 17:10:09 GMT</pubDate></item><item><title><![CDATA[Reply to Cannot redirect to authorize page when fusionauth and front end app dockerized on Tue, 26 Dec 2023 17:07:33 GMT]]></title><description><![CDATA[<p dir="auto"><a class="mention plugin-mentions-user plugin-mentions-a" href="https://fusionauth.io/community/forum/uid/2777">@ronn316</a> said in <a href="/community/forum/post/6891">Cannot redirect to authorize page when fusionauth and front end app dockerized</a>:</p>
<blockquote>
<p dir="auto">But if you dockerize the .NET application as well</p>
</blockquote>
<p dir="auto">Do you mean run the .Net application in the same docker image as the FusionAuth applicaiton?  If so, the application was not designed to run in this configuration.  That is not to say it is not possible, it will likely just take a little extra configuration.</p>
]]></description><link>https://fusionauth.io/community/forum/post/6905</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/6905</guid><dc:creator><![CDATA[mark.robustelli]]></dc:creator><pubDate>Tue, 26 Dec 2023 17:07:33 GMT</pubDate></item></channel></rss>