<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: lluiscab</title>
    <description>The latest articles on DEV Community by lluiscab (@lluiscab).</description>
    <link>https://dev.to/lluiscab</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F104403%2F11c3fe03-9919-48e3-82ee-55b34ef6af50.png</url>
      <title>DEV Community: lluiscab</title>
      <link>https://dev.to/lluiscab</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/lluiscab"/>
    <language>en</language>
    <item>
      <title>Got a crazy idea for user authentication, can I get some feedback?</title>
      <dc:creator>lluiscab</dc:creator>
      <pubDate>Wed, 26 Sep 2018 12:52:51 +0000</pubDate>
      <link>https://dev.to/lluiscab/does-anyone-know-how-to-handle-authentication-between-projects-1gm6</link>
      <guid>https://dev.to/lluiscab/does-anyone-know-how-to-handle-authentication-between-projects-1gm6</guid>
      <description>&lt;p&gt;Okay, first post here, sorry if I make any mistakes.&lt;/p&gt;

&lt;p&gt;So I like to get some projects running, working on them and that stuff, the problem always comes when I need to add authentication and I don't want to maintaint databases with user  data for each project, a simple user id for me is enough, that's why I normally use&lt;code&gt;passport-twitter&lt;/code&gt; to handle authentication also not having to worry about storing someone else's password is a bonus.&lt;/p&gt;

&lt;p&gt;Thing is, once you have more than one or two projects, I doubt that reusing the same twitter app for all of them is correct so I got a plan, and I'd like to know what you guya think of it and if anyone has any idea on how to implement such a thing.&lt;/p&gt;

&lt;p&gt;So, my plan is to have a central authentication for all my projects, kind of what google does with &lt;code&gt;accounts.google.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;The idea is simple, when a user wants to login to one of my projects, I start a OAuth process with a custom server of mine, &lt;code&gt;auth.example.com&lt;/code&gt; which is basically a normal OAuth server, the caveat is that this custom OAuth server doesn't authenticate users with their username and password, instead, it does it via Twitter, Google, GitHub, whatever. So it'a basically OAuth inside Oauth.&lt;/p&gt;

&lt;p&gt;I'm not really sure if anyone will understand what I mean but I'm not really sure this can be done either so I guess I'll try and see if anyone knows of an existing project that has thia system or knows if it's possible to do / how.&lt;/p&gt;

&lt;p&gt;Authentication isn't my thing and I'd love some assistance here, I don't want to screw anything up&lt;/p&gt;

&lt;p&gt;Thanks.&lt;/p&gt;

</description>
      <category>discuss</category>
      <category>node</category>
    </item>
  </channel>
</rss>
