<?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" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Siddharth Kar on Medium]]></title>
        <description><![CDATA[Stories by Siddharth Kar on Medium]]></description>
        <link>https://medium.com/@siddharth.kar?source=rss-f634dd77a935------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*-OBtpFxW6LmkvHRPvy2Z4w.jpeg</url>
            <title>Stories by Siddharth Kar on Medium</title>
            <link>https://medium.com/@siddharth.kar?source=rss-f634dd77a935------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 18:04:14 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@siddharth.kar/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Fortifying Micro-service Communications with M2M Authorisation — Part 1: Introduction]]></title>
            <link>https://medium.com/@siddharth.kar/fortifying-micro-service-communications-with-m2m-authorisation-part-1-introduction-1912b1ea85a2?source=rss-f634dd77a935------2</link>
            <guid isPermaLink="false">https://medium.com/p/1912b1ea85a2</guid>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[system-design-concepts]]></category>
            <category><![CDATA[microservices]]></category>
            <dc:creator><![CDATA[Siddharth Kar]]></dc:creator>
            <pubDate>Fri, 05 Jul 2024 17:44:37 GMT</pubDate>
            <atom:updated>2024-07-07T11:47:34.409Z</atom:updated>
            <content:encoded><![CDATA[<h3>Fortifying Micro-service Communications with M2M Authorisation — Part 1: Introduction</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G1KGocG0O4l1LzsZVAQupg.png" /></figure><h3>What is M2M (Machine to Machine) Authorisation?</h3><blockquote>Machine to Machine (M2M) authorisation provides machines a mechanism to verify each other’s identity and permissions to securely communicate or access protected / specific resources using cryptographically signed digital tokens (JWT).</blockquote><figure><img alt="" src="https://cdn-images-1.medium.com/max/302/1*_CQmM1Knt-cNAr-3YqNH1Q.gif" /></figure><h3>Sketch (Simplifying Concept)</h3><p>Let’s try to understand the concept with a sketch of the Friends Sports Club.</p><p><strong><em>Introducing our Characters…</em></strong></p><figure><img alt="Monica" src="https://cdn-images-1.medium.com/max/151/1*A0JAQdKeQVh1Av7qkGqUJg.png" /><figcaption>The Gatekeeper (Machine / Resource Server) — Checks player access card (tokens) and provides entry to various sport courts (resources). She is strict and a no-nonsense person.</figcaption></figure><figure><img alt="Ross" src="https://cdn-images-1.medium.com/max/151/1*zUXL9Qait_O6PH-_XKnYrg.png" /><figcaption>The Sports Club Manager (Authorisation Server) — Issues access cards (tokens) to players to access various sport courts (resources). He’s a professional and handles the registration process.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*bfAwp8HLSzb8zrxven272g.png" /><figcaption>Badminton Player (Machine / Server) — Registers to get access to Badminton Court(resource). He abides by the club rules and stays within the permissible area.</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/151/1*QMX4cSqLJ93DOHDY8Pe4-Q.png" /><figcaption>Table Tennis Player (Machine / Server) — Registers to get access to Table Tennis Court(resource). Being sneaky by nature, his interest in playing badminton sometimes leads him to break the club rules.</figcaption></figure><p><strong><em>Sketch follows….</em></strong></p><p><strong><em>Scene 1: Chandler visits Friends Sports Club</em></strong></p><p><em>Take 1: Chandler registers for playing Badminton</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/741/1*RVhswuSViyhuF9W8FmAKiw.png" /></figure><p><em>Take 2: After registration, Chandler goes to play Badminton</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/737/1*obAAH7B1nEImpMovav2v9w.png" /></figure><p><strong><em>Scene 2: Joey visits Friends Sports Club</em></strong></p><p><em>Take 1: Joey registers for playing Table Tennis</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/758/1*NTToI1o5lDiWDkOWHYM_eA.png" /></figure><p><em>Take 2: After registration, Joey goes to play Table Tennis but tries to sneak in for a game of Badminton on the way</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/767/1*MkjjSPVyu3TwakCo9mjojQ.png" /></figure><p><strong>Let’s summarise the sketch…</strong></p><p><strong><em>Machine / Server Registration Process</em></strong>: Ross, the Sports Club Manager (Authorisation Server), registers Chandler (Machine / Server) for playing badminton and Joey (Machine / Server) for playing table tennis. Issues them Access card (Token) specifically for that purpose.</p><p><strong><em>Access Control</em></strong>: Monica, the Gatekeeper (Server), validates Chandler’s and Joey’s Access card (Token) when they attempt to access the badminton court. She allows Chandler to access the badminton court, but restricts Joey’s access as he has only enrolled for table tennis.</p><p><strong><em>Consequences of Unauthorised Access</em></strong>: Monica reminds Joey of the club rules and emphasises the importance of sticking to his authorised area. This reinforces the concept of access control and the limitations imposed by M2M authorisation.</p><p>With the above sketch, we have covered the basics of M2M authorisation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/200/1*UJH9CZImKqdW7z8jGFiukg.gif" /></figure><p>That concludes Part 1. In Part 2, we will go through the Implementation Strategy in depth.</p><p>Please find below the links for the ‘Fortifying Micro-service Communications with M2M Authorisation’ blog series:</p><p>Part 1: Introduction (You are here)</p><p>Part 2: Understanding and Approach(Coming Soon)</p><p>Part 3: Setting up Authorisation Server ft. Auth0 (Coming Soon)</p><p>Part 4: M2M in action ft. NestJS (Coming Soon)</p><p>Thank you for reading my blog. If you enjoyed it, please follow me on Medium and show your appreciation with a few claps. Feel free to share your feedback or start a discussion by commenting below or reaching out via email at siddharth.kar@outlook.com.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1912b1ea85a2" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>