<?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[Integrating AWS Cognito Authentication with NodeBB API (No NodeBB UI)]]></title><description><![CDATA[<p dir="auto">Hi community,</p>
<p dir="auto">I’m using AWS Cognito for authentication (sign up and login) across my project, and all user management is centralized there.</p>
<p dir="auto">Now I want to integrate NodeBB, but I do not want to use NodeBB’s UI for login/registration. Instead, I want to:</p>
<ul>
<li>
<p dir="auto">Continue using AWS Cognito for user registration and login.</p>
</li>
<li>
<p dir="auto">Expose a common backend service (API) that my other modules (and NodeBB) can use for authentication.</p>
</li>
<li>
<p dir="auto">Use only the NodeBB APIs (not the UI) to handle sessions, topics, posts, etc.</p>
</li>
</ul>
<p dir="auto">I’m a bit unsure about the correct approach here:</p>
<ul>
<li>
<p dir="auto">Can NodeBB rely fully on Cognito for authentication while I interact with NodeBB only through its APIs?</p>
</li>
<li>
<p dir="auto">How should I map Cognito users to NodeBB users (e.g., using Cognito’s sub as the NodeBB uid)?</p>
</li>
<li>
<p dir="auto">Should I use the session-sharing plugin, or is it better to build a custom integration for Cognito?</p>
</li>
<li>
<p dir="auto">What’s the recommended way to keep NodeBB users in sync with Cognito users if I bypass the UI?</p>
</li>
</ul>
<p dir="auto">Has anyone implemented this kind of API-only integration with Cognito and NodeBB? Any best practices or guidance would be much appreciated.</p>
<p dir="auto">Thanks!</p>
]]></description><link>https://bbs.spacc.eu.org/new/topic/4dfe4356-ef15-4d77-a628-dbbc8fe96a17/integrating-aws-cognito-authentication-with-nodebb-api-no-nodebb-ui</link><generator>RSS for Node</generator><lastBuildDate>Mon, 09 Nov 2026 07:35:05 GMT</lastBuildDate><atom:link href="https://bbs.spacc.eu.org/new/topic/4dfe4356-ef15-4d77-a628-dbbc8fe96a17.rss" rel="self" type="application/rss+xml"/><pubDate>Thu, 18 Sep 2025 08:34:14 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Integrating AWS Cognito Authentication with NodeBB API (No NodeBB UI) on Fri, 19 Sep 2025 04:59:53 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.nodebb.org/user/balu" target="_blank" rel="noopener noreferrer nofollow ugc">balu</a> it's what I would do. Doesn't necessarily mean it's the right approach but simpler is better.</p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105849</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105849</guid><dc:creator><![CDATA[julian@community.nodebb.org]]></dc:creator><pubDate>Fri, 19 Sep 2025 04:59:53 GMT</pubDate></item><item><title><![CDATA[Reply to Integrating AWS Cognito Authentication with NodeBB API (No NodeBB UI) on Fri, 19 Sep 2025 04:37:43 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.nodebb.org/user/julian" target="_blank" rel="noopener noreferrer nofollow ugc">julian</a> Thank you for the clarification. <img src="https://bbs.spacc.eu.org/new/assets/plugins/nodebb-plugin-emoji/emoji/twemoji2/1f64f.png?v=88a2f1f2287" class="not-responsive emoji emoji-twemoji2 emoji--pray" style="height:23px;width:auto;vertical-align:middle" title="🙏" alt="🙏" /></p>
<p dir="auto">I am using React.js for my frontend, and the NodeBB forum is just one module inside my overall project.</p>
<p dir="auto">I understand now that I can use the master token + ?_uid= approach to call the NodeBB APIs directly, and maintain my own mapping between the Cognito sub and the NodeBB uid.</p>
<p dir="auto">I was initially looking at the session-sharing plugin, but since I am not using the NodeBB frontend at all, I think the create-user API + master token flow might be a cleaner solution for me.</p>
<p dir="auto">Could you please confirm if in my case hitting the create-user API and maintaining the mapping is better than trying to wire up session-sharing?</p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105848</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105848</guid><dc:creator><![CDATA[balu@community.nodebb.org]]></dc:creator><pubDate>Fri, 19 Sep 2025 04:37:43 GMT</pubDate></item><item><title><![CDATA[Reply to Integrating AWS Cognito Authentication with NodeBB API (No NodeBB UI) on Thu, 18 Sep 2025 18:02:00 GMT]]></title><description><![CDATA[<p dir="auto"><a href="https://community.nodebb.org/user/balu" target="_blank" rel="noopener noreferrer nofollow ugc">balu</a> Why are you planning to have the user step through Cognito for authentication if you're not intending to use the NodeBB frontend at all?</p>
<p dir="auto">If you already have the Cognito user, you could use the NodeBB API (using a master token) to create a user, and store your own association between the cognito id and the nodebb uid.</p>
<p dir="auto">Then just keep using the master token to make calls on behalf of whichever user. Use the <code>?_uid=</code> parameter to distinguish calls between different users.</p>
]]></description><link>https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105847</link><guid isPermaLink="true">https://bbs.spacc.eu.org/new/post/https://community.nodebb.org/post/105847</guid><dc:creator><![CDATA[julian@community.nodebb.org]]></dc:creator><pubDate>Thu, 18 Sep 2025 18:02:00 GMT</pubDate></item></channel></rss>