<?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 to Block Logins Based on IdP Links in FusionAuth Without Storing API Keys in Lambdas]]></title><description><![CDATA[<p dir="auto">We need to prevent users from logging in through a specific flow if they are federated with one of our clients. This requires checking the <strong>/api/identity-provider/link</strong> API. Since we can’t store API keys in code, is there an internal way for a FusionAuth lambda to call this API without hardcoding the key?</p>
]]></description><link>https://fusionauth.io/community/forum/topic/3023/how-to-block-logins-based-on-idp-links-in-fusionauth-without-storing-api-keys-in-lambdas</link><generator>RSS for Node</generator><lastBuildDate>Mon, 17 Aug 2026 04:18:43 GMT</lastBuildDate><atom:link href="https://fusionauth.io/community/forum/topic/3023.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 09 Aug 2025 01:40:07 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to How to Block Logins Based on IdP Links in FusionAuth Without Storing API Keys in Lambdas on Sat, 09 Aug 2025 01:41:47 GMT]]></title><description><![CDATA[<p dir="auto">Currently, FusionAuth lambdas cannot call the API without including an API key in the code — there’s no built-in secret manager for this yet (feature request).</p>
<p dir="auto"><strong>Alternative approaches:</strong></p>
<ol>
<li>
<p dir="auto"><strong>Webhook filtering (recommended)</strong><br />
Use the <strong>user.login.success</strong> webhook to check if the user is linked to an IdP, and reject the login by returning a non-200 response. This avoids storing API keys in lambdas, but adds an extra network call to each login.</p>
</li>
<li>
<p dir="auto"><strong>Store link data in</strong> user.data<br />
Push IdP linking info into a custom <strong>user.data.links[]</strong> field so it’s accessible in most lambdas without needing an API call. You’ll need a process to keep this data current.</p>
</li>
</ol>
]]></description><link>https://fusionauth.io/community/forum/post/8280</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8280</guid><dc:creator><![CDATA[wesley]]></dc:creator><pubDate>Sat, 09 Aug 2025 01:41:47 GMT</pubDate></item><item><title><![CDATA[Reply to How to Block Logins Based on IdP Links in FusionAuth Without Storing API Keys in Lambdas on Sat, 27 Jun 2026 15:47:32 GMT]]></title><description><![CDATA[<blockquote>
<p dir="auto">Since we can’t store API keys in code,</p>
</blockquote>
<p dir="auto">FYI, with the release of 1.64.0, you now can store secrets elsewhere and have lambdas retrieve them.</p>
<p dir="auto">See <a href="https://fusionauth.io/docs/extend/code/lambdas/#secrets" rel="nofollow ugc">the documentation for more details</a>.</p>
]]></description><link>https://fusionauth.io/community/forum/post/8610</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8610</guid><dc:creator><![CDATA[dan]]></dc:creator><pubDate>Sat, 27 Jun 2026 15:47:32 GMT</pubDate></item><item><title><![CDATA[Reply to How to Block Logins Based on IdP Links in FusionAuth Without Storing API Keys in Lambdas on Sat, 09 Aug 2025 01:41:47 GMT]]></title><description><![CDATA[<p dir="auto">Currently, FusionAuth lambdas cannot call the API without including an API key in the code — there’s no built-in secret manager for this yet (feature request).</p>
<p dir="auto"><strong>Alternative approaches:</strong></p>
<ol>
<li>
<p dir="auto"><strong>Webhook filtering (recommended)</strong><br />
Use the <strong>user.login.success</strong> webhook to check if the user is linked to an IdP, and reject the login by returning a non-200 response. This avoids storing API keys in lambdas, but adds an extra network call to each login.</p>
</li>
<li>
<p dir="auto"><strong>Store link data in</strong> user.data<br />
Push IdP linking info into a custom <strong>user.data.links[]</strong> field so it’s accessible in most lambdas without needing an API call. You’ll need a process to keep this data current.</p>
</li>
</ol>
]]></description><link>https://fusionauth.io/community/forum/post/8280</link><guid isPermaLink="true">https://fusionauth.io/community/forum/post/8280</guid><dc:creator><![CDATA[wesley]]></dc:creator><pubDate>Sat, 09 Aug 2025 01:41:47 GMT</pubDate></item></channel></rss>