<?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[Can FusionAuth federate to itself?]]></title><description><![CDATA[<p dir="auto">If I am running multiple FusionAuth instances, can one be a SAML IdP and another be the SAML SP?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/826/can-fusionauth-federate-to-itself</link><generator>RSS for Node</generator><lastBuildDate>Fri, 17 Jul 2026 20:08:59 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/826.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Feb 2021 23:17:05 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Can FusionAuth federate to itself? on Thu, 12 Sep 2024 21:51:03 GMT]]></title><description><![CDATA[<p dir="auto">This also works with an OIDC provider and from tenant to tenant in the same FusionAuth instance. Assume you have an app (app1) in your existing tenant and you want to allow users in a different tenant to log in to app1. You can do this with an identity provider.</p>
<p dir="auto">To do so:</p>
<ul>
<li>create a new tenant in your FusionAuth instance</li>
<li>create an application in the new tenant (app2)
<ul>
<li>add an authorized redirect URL of <code> https://yourinstance.fusionauth.io/oauth2/callback</code></li>
<li>make sure the authorization code grant is checked.</li>
</ul>
</li>
<li>create a user in the new tenant
<ul>
<li>use same email address but a different password</li>
<li>register the user for app2</li>
</ul>
</li>
<li>create an OIDC identity provider
<ul>
<li>the name should be app2 IDP</li>
<li>update the button text to say 'log in with app2 in a different tenant'</li>
<li>the client identifier and secret should be the app2 client id and secret</li>
<li>the scope should be <code>openid profile email</code></li>
<li>the authorization URL should be <code>https://yourinstance.fusionauth.io/oauth2/authorize</code></li>
<li>the token URL should be <code>https://yourinstance.fusionauth.io/oauth2/token</code></li>
<li>the userinfo URL should be <code>https://yourinstance.fusionauth.io/oauth2/userinfo</code></li>
<li>enable the OIDC identity provider for app1 and make sure to create a registration for that application when a successful authentication is done.</li>
</ul>
</li>
</ul>
<p dir="auto">When you visit the app1 login screen, you should now see a button prompting you to log in with app2.</p>
<p dir="auto">This allows you to do cross tenant enterprise sign on within the same FusionAuth instance.</p>
]]></description><link>https://fusionauth.io/community/forum/post/7449</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/7449</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 12 Sep 2024 21:51:03 GMT</pubDate></item><item><title><![CDATA[Reply to Can FusionAuth federate to itself? on Fri, 19 Feb 2021 19:24:51 GMT]]></title><description><![CDATA[<p dir="auto">Here's how I set up FusionAuth as a SAML IdP (<code>idp.fusionauth.io</code>) and added a 'Login with SAML' button on a FusionAuth instance (<code>local.fusionauth.io</code>). Both servers are running 1.24.0. I do have multiple tenants in both local and demo, but both applications are in the default tenant. (Setting up these servers locally is possible, but beyond the scope of this post.)</p>
<ul>
<li>Created a RSA 256 keypair on <code>idp.fusionauth.io</code> in key master (<code>saml test</code>)</li>
<li>Created a RSA public key and imported the <code>saml test</code> public key into key master on <code>local.fusionauth.io</code></li>
<li>Add POST as an allowed CORS method in the <code>local.fusionauth.io</code> settings, with an allowed origin of <code>https://idp.fusionauth.io</code>.</li>
<li>Created an application (<code>samlsp</code>) in <code>local.fusionauth.io</code>. Added a oauth redirect url to the application.</li>
<li>Created an application (<code>samlidp</code>) in <code>idp.fusionauth.io</code>. Added a oauth redirect url to the application.</li>
<li>Configured samlidp application with the following values:
<ul>
<li>enabled SAML on the SAML tab</li>
<li>set the issuer to <code>https://example.com</code></li>
<li>added an authorized redirect url: <code>https://local.fusionauth.io/samlv2/acs</code></li>
<li>set the response signing key to 'saml test'. All other response fields are default.</li>
</ul>
</li>
<li>Configured a SAML identity provider on <code>local.fusionauth.io</code>
<ul>
<li>name: idpfusionauth</li>
<li>IdP endpoint: <code>https://idp.fusionauth.io/samlv2/login/a743e2cd-55bb-789c-b076-8846fdd3a51f</code> ( pulled from the applications details screen of the <code>samlidp</code> application)</li>
<li>use nameid for email: true</li>
<li>verification key: use the certificate of the aforementioned <code>saml test</code> public key (not the public key!)</li>
<li>use post method: false</li>
<li>sign request: false</li>
<li>applications: <code>samlsp</code> enabled and registration enabled</li>
</ul>
</li>
<li>Updated the issuer on the <code>samlidp</code> application <code>SAML</code> screen. Set the issuer to <code>https://local.fusionauth.io/samlv2/sp/dfd114b9-7b57-446d-8f60-ec6689f47da4</code>. This value is pulled from the <code>local.fusionauth.io</code> SAMLv2 Identity Provider details. Note that you may need to trim this value, as when you copy it there may be spaces in front or behind, and if you don't remove them, you'll see a <code>The AuthnRequest contained an invalid issuer</code> message.</li>
</ul>
<p dir="auto">By following these steps, when you open up an incognito window and go to the login page of the <code>samlsp</code> application, you will see a 'login with saml' button, and then you can login with that.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2439</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2439</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Fri, 19 Feb 2021 19:24:51 GMT</pubDate></item><item><title><![CDATA[Reply to Can FusionAuth federate to itself? on Thu, 18 Feb 2021 23:17:36 GMT]]></title><description><![CDATA[<p dir="auto">Yes. You'd need to configure each instance correctly, but this can be done.</p>
]]></description><link>https://fusionauth.io/community/forum/post/2430</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/2430</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Thu, 18 Feb 2021 23:17:36 GMT</pubDate></item></channel></rss>