<?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>Forem: Prince Singh</title>
    <description>The latest articles on Forem by Prince Singh (@isinghprince).</description>
    <link>https://forem.com/isinghprince</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.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1874835%2F65733e44-8a1c-4436-8a4e-e6711bc1904b.jpg</url>
      <title>Forem: Prince Singh</title>
      <link>https://forem.com/isinghprince</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/isinghprince"/>
    <language>en</language>
    <item>
      <title>Auth, OAuth, and Auth0: What is what?</title>
      <dc:creator>Prince Singh</dc:creator>
      <pubDate>Sun, 15 Sep 2024 15:02:53 +0000</pubDate>
      <link>https://forem.com/isinghprince/auth-oauth-and-auth0-what-is-what-8gg</link>
      <guid>https://forem.com/isinghprince/auth-oauth-and-auth0-what-is-what-8gg</guid>
      <description>&lt;h2&gt;
  
  
  Cracking the Auth Puzzle: A Tale for Survivors and Learners
&lt;/h2&gt;

&lt;p&gt;Oh, is this going to be another OAuth Guide? Not at all! This will be more like what is what session? So, you know what you are going to deal with. The terms, which you have seen and heard 100 times, Auth, OAuth, Auth0…what do they mean?&lt;/p&gt;

&lt;p&gt;Alright, mate! If we have cleared up the confusion about what we will be covering here, let's buckle up. We’re diving into the world of Auth.&lt;/p&gt;

&lt;p&gt;It might seem like a rollercoaster for beginners but don’t worry, It is not. It is more like a toy train set, yeah, It's as simple as that.&lt;/p&gt;

&lt;p&gt;So, let’s check it out, one by one so that you can master it.&lt;/p&gt;

&lt;h2&gt;
  
  
  “Auth”: first things first
&lt;/h2&gt;

&lt;p&gt;Auth is short for authentication and sometimes authorization, which are two distinct but related concepts in computer systems security.&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;&lt;p&gt;Authentication: Process of verifying the identity of a user or system — This is like showing your ID to prove who you are. When you log in to a website with your username and password, the website checks if it’s really you.&lt;/p&gt;&lt;/li&gt;
&lt;li&gt;&lt;p&gt;Authorization: Process of determining what an authenticated user is allowed to do — After proving who you are, this step decides what you are allowed to do. For example, after logging in, it decides if you can see certain pages or make changes.&lt;/p&gt;&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;Now, you say, Ok, it is pretty much straightforward up to here but…&lt;/p&gt;

&lt;h2&gt;
  
  
  What about “OAuth” and “Auth0”? Are they the Same?
&lt;/h2&gt;

&lt;p&gt;OAuth and Auth0?&lt;/p&gt;

&lt;p&gt;Nah. Not the same things, but I get why folks mix them up.&lt;/p&gt;

&lt;p&gt;It’s like confusing the Hindi film industry (a.k.a. Bollywood) with the Indian film industry.&lt;/p&gt;

&lt;h2&gt;
  
  
  What is “OAuth”?
&lt;/h2&gt;

&lt;p&gt;OAuth is an open standard authorization framework that allows third-party applications to access a user’s resources without needing to know their credentials.&lt;/p&gt;

&lt;p&gt;Let's make it straight —&lt;/p&gt;

&lt;p&gt;OAuth is a protocol for authorization.&lt;/p&gt;

&lt;p&gt;“Ever clicked ‘Login with Google’ on a website? That’s OAuth doing its thing!”&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;A little bit of history to make you more aware and confident -&lt;/strong&gt;&lt;br&gt;
It’s been around since 2006 — yeah when we were probably more worried about our School Homework and WWE superstars playing cards!&lt;/p&gt;

&lt;p&gt;OAuth 1.0 was the OG, but it had its flaws. Kind of like that over-engineered utility app that seemed cool but was a pain to use.&lt;/p&gt;

&lt;p&gt;Then came OAuth 2.0 in 2012 — when most of us had just joined university or were preparing for it.&lt;/p&gt;

&lt;p&gt;It’s like OAuth 1.0’s cooler, more chill cousin. Easier to use, and more flexible. It’s what most devs use these days.&lt;/p&gt;

&lt;p&gt;Think of it like upgrading from a Nokia 3310 to a shiny new iPhone.&lt;/p&gt;

&lt;p&gt;Want to dive deep more into OAuth, without reading the full article — here you go — OAuth.Net and Modern Guide to OAuth&lt;/p&gt;

&lt;h2&gt;
  
  
  Now, What is “Auth0”?
&lt;/h2&gt;

&lt;p&gt;This is a whole different game, or not so different. It’s a company that provides authentication and authorization as a servicie. They use OAuth 2.0, but they’re not OAuth itself.&lt;/p&gt;

&lt;p&gt;It’s like saying Swiggy is food — nah, they just deliver it!&lt;/p&gt;

&lt;p&gt;They support various identity protocols, including OAuth 2.0, OpenID Connect, SAML, and more. Want to check more about Auth0 — here you go again — Auth0&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Are there more platforms like Auth0? Definitely Yes!&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Okta (In 2021, Okta acquired Auth0 for $6.5 billion)&lt;/li&gt;
&lt;li&gt;Amazon Cognito and Firebase Authentication — provided by Google&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Why all this confusion?
&lt;/h2&gt;

&lt;p&gt;When you are new to these terms they all may sound the same to you. And of course, they are just juggling those few letters while naming :)&lt;/p&gt;

&lt;p&gt;But, I can bet when I first stumbled upon these terms. My head was spinning faster than yours! Trust me, once you get it, it clicks. ✌&lt;/p&gt;




&lt;h2&gt;
  
  
  In Conclusion
&lt;/h2&gt;

&lt;p&gt;So there you have it, folks! We’ve cracked open the Auth puzzle box and peeked inside.&lt;/p&gt;

&lt;p&gt;From the OG OAuth to the slick Auth0. , we’ve covered the basics without frying our brains. Remember, it’s not as scary as it seems — it’s just a bunch of tech trying to keep your stuff safe and sound.&lt;/p&gt;

&lt;p&gt;Next time someone throws around “OAuth” or “Auth0” at a meetup, you can nod knowingly instead of scratching your head. And hey, if you’re still feeling a bit lost in the auth jungle, no worries! We’re all on this wild tech ride together.&lt;/p&gt;

&lt;p&gt;Keep coding, keep learning- until next time, and may your tokens always be fresh and your auths never fail!&lt;/p&gt;




&lt;p&gt;As always, if you’ve enjoyed this article — please feel free to leave a clap, and if you have any questions or comments feel free to leave those as well. Thanks for reading!&lt;/p&gt;

&lt;p&gt;Got any specific auth headaches you’re dealing with? Or any other tech terms making you go “Huh?”? Shoot, and let’s untangle this mess together!&lt;/p&gt;




&lt;p&gt;LinkedIn — isinghprince)&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>javascript</category>
      <category>authjs</category>
      <category>angular</category>
    </item>
    <item>
      <title>Lightning: How AMP Shocked the Web and Then Short-Circuited</title>
      <dc:creator>Prince Singh</dc:creator>
      <pubDate>Sat, 03 Aug 2024 08:45:37 +0000</pubDate>
      <link>https://forem.com/isinghprince/lightning-how-amp-shocked-the-web-and-then-short-circuited-1n3b</link>
      <guid>https://forem.com/isinghprince/lightning-how-amp-shocked-the-web-and-then-short-circuited-1n3b</guid>
      <description>&lt;p&gt;&lt;strong&gt;Remember Accelerated Mobile Pages (AMP)?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;It was the new kid on the block. The cool dude with lightning-fast loading speeds. It swaggered into town like a Superhero.&lt;/p&gt;

&lt;p&gt;I also scrambled to join the AMP bandwagon. let me say this, it was like minions going crazy for bananas. It spread faster than gossip in a WhatsApp group.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzauhyeijfj9gdt0w25mh.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fzauhyeijfj9gdt0w25mh.jpg" alt="Image description" width="800" height="451"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;For a while, AMP was everywhere&lt;/strong&gt;. For news sites and blogs, it was a dream. Simple content, fast load times, happy readers. Name any publisher, they all adopted it. They loved - the load time faster than Usain Bolt on a sugar rush.&lt;/p&gt;

&lt;p&gt;In 2024, &lt;em&gt;70% of websites take more than 7s to load, but in 2017, it used to load in few milliseconds&lt;/em&gt;, almost instantly. AMP pages loaded quicker than you could say "chai-paani".&lt;/p&gt;

&lt;p&gt;Ad revenue? Oh, it was sweeter than anything. AMP ads loaded fast, which meant more eyeballs and more money.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp448958qlpy335s966tb.jpeg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fp448958qlpy335s966tb.jpeg" alt="Image description" width="800" height="1222"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Then, trouble started brewing&lt;/strong&gt;. AMP was fast, sure. But as websites got more complex, AMP started to feel like a straitjacket. Comfy for some, but too restrictive for others.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi865zchy9bngl3fk1kn.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fqi865zchy9bngl3fk1kn.jpg" alt="Image description" width="800" height="450"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Publishers realized they were losing control. AMP URLs lived on Google's domain. It was like having your shop inside someone else's mall. Sure, it looks nice, but is it really yours?&lt;/p&gt;

&lt;p&gt;Slowly, the shine wore off. Web standards caught up. Regular mobile pages got faster. AMP started to look less like a hero and more like a character actor.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Today, AMP is like that one-hit wonder singer&lt;/strong&gt;. You remember them, but you're not sure why.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz3epvvp403zb6fklvrpx.jpg" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fz3epvvp403zb6fklvrpx.jpg" alt="Image description" width="500" height="432"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;It works, but is it really necessary? Some still use AMP. It may be useful in some very specific scenarios. AMP &lt;a href="https://amp.dev/success-stories/" rel="noopener noreferrer"&gt;success stories&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;In the end, &lt;em&gt;AMP was like that trendy fusion restaurant in town. Exciting at first, but you eventually crave the real deal.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Like a monsoon sale, it came, it wowed, and it went. But the web keeps shopping for the next big thing.&lt;/p&gt;

&lt;p&gt;Share your AMP adventures in the comments - whether they're tales of lightning-fast glory or cautionary fables of web dev woe.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;We'd love to hear your war stories!&lt;/strong&gt; Tell us about your encounters with the speed demon of the web - the good, the bad, and the hilariously insane.&lt;/p&gt;

&lt;p&gt;Enjoyed the article? Let's connect on LinkedIn &lt;a href="https://www.linkedin.com/in/isinghprince/" rel="noopener noreferrer"&gt;isinghprince&lt;/a&gt; for more web dev chats!&lt;/p&gt;

&lt;p&gt;Best,&lt;br&gt;
Prince Singh.&lt;/p&gt;

</description>
      <category>webdev</category>
      <category>performance</category>
      <category>mobile</category>
    </item>
  </channel>
</rss>
