<?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 Akila Dananjaya on Medium]]></title>
        <description><![CDATA[Stories by Akila Dananjaya on Medium]]></description>
        <link>https://medium.com/@hddananjaya?source=rss-cb3a0949a733------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*qlz-Hc0NOfT8spzyNaijyw.jpeg</url>
            <title>Stories by Akila Dananjaya on Medium</title>
            <link>https://medium.com/@hddananjaya?source=rss-cb3a0949a733------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 08:55:53 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@hddananjaya/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[How do Passkeys work]]></title>
            <link>https://medium.com/@hddananjaya/how-do-passkeys-work-434c329b88d9?source=rss-cb3a0949a733------2</link>
            <guid isPermaLink="false">https://medium.com/p/434c329b88d9</guid>
            <category><![CDATA[passkey]]></category>
            <category><![CDATA[passwords]]></category>
            <category><![CDATA[simple]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[web-security]]></category>
            <dc:creator><![CDATA[Akila Dananjaya]]></dc:creator>
            <pubDate>Fri, 18 Sep 2026 12:20:14 GMT</pubDate>
            <atom:updated>2026-09-18T12:20:14.867Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s take a look at what passkeys actually are and how they work.</p><h3>Authentication</h3><p>At its core, authentication is about answering a simple question:</p><p><strong>How does a system know that you are actually you?</strong></p><p>A software system needs some way to distinguish you from everyone else. Traditionally, we solved this by giving each user something only they were supposed to know =&gt; a <strong>password</strong>.</p><p>You create a password, remember it, and give it to the website when you want to log in.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/892/1*dGyybuiwhpvXSFyBHFQHfg.png" /><figcaption>Figure 1: The basic username password auth flow.</figcaption></figure><p>The idea is simple.</p><p>But passwords have a fundamental problem.</p><p><strong>The password is a reusable secret.</strong></p><p>If someone gets your password, they can simply present that same password to the website. The website has no way of knowing whether the person entering it is actually you.</p><p>And this is where humans make things even worse.</p><p>We’re terrible at managing secrets.</p><p>People write passwords down. They choose predictable passwords. They reuse the same password across multiple websites. And yes, I’m guilty of that last one too.</p><p>This creates a nasty chain reaction. One leaked password can become a key to multiple accounts.</p><p>So over the years, we started putting more rules around passwords:</p><ul><li>Make them long.</li><li>Make them complex.</li><li>Don’t use predictable information.</li><li>Don’t reuse them.</li><li>Change them regularly.</li><li>Store them securely.</li></ul><p>But notice something interesting.</p><p><strong>We kept putting the burden on the user.</strong></p><p>We essentially told people:</p><p>“Create a strong secret, remember it, protect it, never reuse it, and make sure nobody steals it.”</p><p>And even when users follow those rules, the fundamental problem remains:</p><p><strong>The authentication system still depends on a secret that can be presented to it.</strong></p><p>So the next question naturally becomes:</p><p><strong>What happens if we don’t rely on just one secret?</strong></p><p>And that’s exactly what we tried next.</p><h3>Adding More Factors</h3><p>The obvious response to the weaknesses of passwords was :-</p><p><strong>What if a password isn’t enough?</strong></p><p>Instead of trusting a single piece of information, we could ask the user for something else as well.</p><p>This idea became known as =&gt; <strong>Multi Factor Authentication (MFA)</strong>.</p><p>The basic idea is that authentication can depend on multiple factors rather than a single password.</p><p>For example:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/414/1*5PhUFv3CyDEGyu2W_1FKZw.png" /><figcaption>Figure 2: Multi Factor Authentication flow.</figcaption></figure><p>A password is something you <strong>know</strong>.</p><p>A phone can be something you <strong>have</strong>.</p><p>A fingerprint can be something you <strong>are</strong>.</p><p>One of the simplest ways to add a second factor was the <strong>One Time Password (OTP)</strong>.</p><p>Instead of relying only on the password, the service could send a short lived code to the user’s phone.</p><p>Now, stealing the password alone isn’t necessarily enough. The attacker would also need access to the second factor.</p><p>This was a meaningful improvement, but it introduced another problem.</p><p><strong>The OTP is still a secret.</strong></p><p>If an attacker can trick the user into giving them the code, the attacker can use it just like the legitimate user would.</p><p>This is where phishing becomes particularly interesting.</p><p>Imagine you’re trying to log in to your bank, but instead of talking directly to your bank’s website, you are talking to an attacker’s website that looks identical to it.</p><p>The attacker can simply ask :-</p><p>“Enter the verification code we just sent you.”</p><p>You enter it.</p><p>The attacker now has the information they need to continue the login on the real website.</p><p>So we tried other approaches.</p><p><strong>Time based One Time Passwords (TOTP)</strong> generate codes that change periodically rather than relying on a code being sent over SMS.</p><p>But the fundamental problem remains =&gt; <strong>the user still has to enter the code somewhere.</strong></p><p>An attacker who is sitting between the user and the real website can potentially capture that code and use it before it expires.</p><p>Then came <strong>push based MFA</strong>.</p><p>Instead of asking the user to type a code, the user’s device could receive a notification.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/370/1*8Y8G_tHtBrTqvUu3EMoQAg.png" /><figcaption>Figure 2: The push notificaiton flow.</figcaption></figure><p>This removed the need to manually enter a code.</p><p>But it introduced another human problem.</p><p>Attackers could repeatedly send authentication requests, hoping the user would eventually approve one. Maybe because they were annoyed by the notifications or simply weren’t paying attention.</p><p>So we had made authentication more complicated and, in many cases, more secure.</p><p>But we hadn’t fundamentally changed the model.</p><p>We were still asking the user to provide something or approve something that an attacker could potentially steal, intercept, or trick them into providing.</p><p>And that raises a much more interesting question:</p><p><strong>What if the website didn’t need the user to give it a secret at all?</strong></p><p>What if, instead of asking:</p><p><strong>“Can you give me the secret?”</strong></p><p>the website could simply ask:</p><p><strong>“Can you prove that you have it?”</strong></p><p>That shift in framing is the breakthrough. It is called <strong>Challenge Response Authentication.</strong></p><h3>Challenge Response Authentication</h3><p>Reference: <a href="https://en.wikipedia.org/wiki/Challenge%E2%80%93response_authentication">https://en.wikipedia.org/wiki/Challenge%E2%80%93response_authentication</a></p><p>The distinction might sound subtle, but it’s a completely different way of thinking about authentication.</p><p>Imagine you have a secret key that only you possess.</p><p>The website doesn’t need to know what that key is. Instead, when you try to log in, it generates a random value called a <strong>challenge</strong> and sends it to your device.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/549/1*NlQHf_xIsD3rZx-loo4CJQ.png" /><figcaption>Figure 3: Challenge Response authentication flow.</figcaption></figure><p>Your device then uses the secret to produce a response to that particular challenge.</p><p>The device sends the response back to the website.</p><p>The website can then verify that the response is valid without ever receiving the secret itself.</p><p>This changes the fundamental question the server is asking.</p><p>With a password, the server effectively says:-</p><p><strong>“Give me your secret.”</strong></p><p>With challenge response authentication, it says:</p><p><strong>“I don’t need your secret. Prove that you possess it.”</strong></p><h4>But how do we prove possession without revealing the secret?</h4><p>This is where <strong>public key cryptography</strong> comes in.</p><p>Instead of having one secret that both the user and the server need to know, the device can generate a <strong>key pair.</strong></p><ul><li>A <strong>private key</strong>, which stays on the device</li><li>A <strong>public key</strong>, which can be shared with the server</li></ul><p>The private key is used to create a cryptographic signature.</p><p>The public key can then be used by the server to verify that signature.</p><p>The basic model looks like this:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/392/1*4ch-vgEmlCZFDEExjGVJwA.png" /><figcaption>Figure 4: Challenge Response authentication flow(2).</figcaption></figure><p>During authentication, the website generates a new challenge.</p><p>The device signs that challenge using the private key.</p><p>The important part is that <strong>the private key never has to leave the device</strong>.</p><p>The website only needs the public key.</p><p>And because the signature is produced using the private key, successfully creating a valid signature demonstrates possession of that private key.</p><p>This gives us a fundamentally different authentication.</p><p>There is no reusable password being sent to the website.</p><p>There is no secret that the website needs to receive and store.</p><p>And because the server generates a <strong>new challenge for each authentication attempt</strong>, a previously captured response isn’t simply something an attacker can replay indefinitely.</p><p>We now have the cryptographic foundation for passwordless authentication.</p><h3>Standardizing It for the Web</h3><p>We had the answer. Public keys, private keys, sign the challenge, verify the response. Simple, in theory.</p><p>But knowing the answer and being able to use it on billions of different websites are two very different problems.</p><p>Some companies had already built USB security keys. Others were shipping smart cards. Phone makers were adding fingerprint sensors and secure chips. Every one of these solved the “prove you have the key” problem in its own way, and none of them could talk to a browser.</p><p>Imagine you’re a website that wants to support this. Do you write custom integration code for every USB key vendor? Every phone manufacturer? Every smart card reader? That doesn’t scale, and nobody would bother.</p><p>What was actually missing wasn’t cryptography. It was agreement. A shared language that let three very different parties cooperate:-</p><ul><li>The website =&gt; asking to authenticate someone</li><li>The browser =&gt; standing in the middle</li><li>The device =&gt; holding the private key no one else gets to see</li></ul><p>Without that agreement, the idea stays a neat trick a few companies use. With it, it becomes something the entire web can build on.</p><p>That effort to build the agreement became FIDO.</p><h3>FIDO</h3><p>FIDO, which stands for <a href="https://fidoalliance.org/">Fast Identity Online</a>, was an alliance of companies that wanted to move beyond passwords. Their early specifications, <a href="https://fidoalliance.org/specs/fido-uaf-v1.1-ps-20170202/FIDO-UAF-COMPLETE-v1.1-ps-20170202.pdf">FIDO UAF</a> and <a href="https://fidoalliance.org/specs/fido-u2f-v1.2-ps-20170411/FIDO-U2F-COMPLETE-v1.2-ps-20170411.pdf">FIDO U2F</a>, established the foundation for passwordless and public key authentication.</p><p>The problem was that these early specifications were limited in scope and didn’t provide a complete, standardized way for websites, browsers, and authenticators to work together.</p><h3>FIDO2 and WebAuthn</h3><p>FIDO2 was the next step. It brought together two specifications:-</p><ul><li><a href="https://en.wikipedia.org/wiki/WebAuthn">WebAuthn</a> =&gt; the browser API that websites use to register and authenticate credentials.</li><li><a href="https://en.wikipedia.org/wiki/Client_to_Authenticator_Protocol">CTAP</a> =&gt; the protocol that clients use to communicate with external authenticators over transports such as USB, NFC, and Bluetooth.</li></ul><p>Together, they created a complete ecosystem.</p><p>A website could now call a standard JavaScript API in the browser. The browser could talk to an authenticator using a standard protocol. And the authenticator could be anything =&gt; a hardware key, a phone, a laptop’s built in secure chip, or even software backed by a cloud account.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1009/1*NpBGd2vQtUmDJ9ctGYLZVQ.png" /><figcaption>Figure 5: WebAuth and CTAP Architecture.</figcaption></figure><p>This is where the modern idea of a passkey was born.</p><p>But before we go deeper into the mechanics, it is worth pausing to answer a simpler question that confuses a lot of people:-</p><p><strong>What exactly is a passkey?</strong></p><h3>What Exactly Is a Passkey?</h3><p>The term “passkey” is a user friendly name for a FIDO authentication credential, typically a discoverable WebAuthn credential.</p><p>It consists of:</p><ul><li>A private key =&gt; kept inside an authenticator</li><li>A public key =&gt; registered with the website</li><li>Credential metadata =&gt; information that associates the credential with the relying party and user account</li></ul><p>When you register a passkey with a website, the authenticator generates a key pair and gives the website the public key. The private key never leaves the authenticator.</p><p>When you log in later, the website sends a challenge. The authenticator signs that challenge with the private key. The website verifies the signature with the public key it stored earlier.</p><p>That is it.</p><p>A passkey is not a file you can download and email around. It is not a password manager entry. It is not a certificate from a central authority. It is a cryptographic key pair bound to a specific origin, with the private key protected by some kind of user verification or user presence check.</p><h3>The Players</h3><p>WebAuthn involves several distinct roles. Understanding who does what makes the ceremonies much easier to follow.</p><h4>Relying Party (RP)</h4><p>The Relying Party is simply the website or service that wants to authenticate the user. If you are logging into github.com, then GitHub is the relying party.</p><p>The RP generates challenges, stores public keys, and verifies signatures. It relies on the authenticator to prove the user’s identity, which is where the name comes from.</p><h4>WebAuthn Client</h4><p>The WebAuthn client is typically the browser.</p><p>It sits between the RP and the authenticator. The RP calls the browser’s WebAuthn JavaScript API, and the client coordinates with the authenticator. For external authenticators, this communication can use CTAP over transports such as USB, NFC, or Bluetooth.</p><p>Without the browser acting as a trusted intermediary, websites would have direct access to hardware, which would be a security nightmare.</p><h4>Authenticator</h4><p>The authenticator is the device or software that holds the private key and performs cryptographic operations.</p><p>It could be:</p><ul><li>A USB hardware security key</li><li>Your phone or laptop’s built in platform authenticator</li><li>A software based credential provider</li></ul><p>The authenticator is responsible for generating key pairs, signing challenges during authentication. It can also enforce user presence (UP) and/or user verification (UV) requirements when applicable (more on this later).</p><h3>Ceremony</h3><p>In WebAuthn, the word ceremony has a specific meaning. It refers to the complete, structured exchange between the RP, the browser, and the authenticator during registration or authentication.</p><p>It is called a ceremony because every step matters. The protocol is not just a function call. It is a sequence of actions that collectively create a secure guarantee.</p><p>There are two main ceremonies:</p><ul><li>Registration Ceremony =&gt; creating the credential and registering the public key with the RP.</li><li>Authentication Ceremony =&gt; using the credential to prove identity later.</li></ul><h3>Registration Ceremony</h3><p>The registration ceremony is where a passkey is created and associated with a user account.</p><p>At a high level, the website asks the browser to create a credential. The browser asks the authenticator. The authenticator generates a key pair, keeps the private key, and returns the public key to the website through the browser.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*NxhxnFQipqNvBxfWxR9rhw.png" /></figure><p>But each step carries security meaning. Let’s go through it carefully.</p><h4>Step 1 =&gt; The RP asks for a credential</h4><p>The user is logged into the website and clicks a button like <em>“Add a passkey”.</em></p><p>The website prepares a call to the WebAuthn API.</p><p>Before that call, the RP generates a few important things:-</p><ul><li>A challenge =&gt; a random value used to prevent replay attacks.</li><li>User information =&gt; information identifying the account that the new credential will be associated with.</li><li>A list of public key parameters =&gt; telling the authenticator which algorithms it supports, such as ECDSA with P-256 or Ed25519.</li></ul><p>Then the RP calls:</p><pre>navigator.credentials.create({<br>  publicKey: {<br>    challenge: new Uint8Array(/* random bytes */),<br>    rp: { name: &quot;Example Bank&quot;, id: &quot;examplebank.com&quot; },<br>    user: {<br>      id: new Uint8Array(/* user ID */),<br>      name: &quot;user@example.com&quot;,<br>      displayName: &quot;User Name&quot;<br>    },<br>    pubKeyCredParams: [<br>      { type: &quot;public-key&quot;, alg: -7 },   // ES256<br>    ],<br>    authenticatorSelection: {<br>      authenticatorAttachment: &quot;platform&quot;,<br>      userVerification: &quot;preferred&quot;<br>    },<br>    excludeCredentials: [<br>      { type: &quot;public-key&quot;, id: new Uint8Array(/* existing credential ID */) }<br>    ],<br>    timeout: 60000,<br>    attestation: &quot;none&quot;<br>  }<br>});</pre><p>This is the moment the website says to the browser: <em>“I would like to create a public key credential for this user.”</em></p><h4>Step 2 =&gt; The browser checks the origin and talks to the authenticator</h4><p>The browser receives the request and immediately performs important security checks:-</p><p>First, it determines the origin of the page making the WebAuthn call. It then verifies that the requested RP ID is valid for that origin according to WebAuthn’s RP ID rules.</p><p>If the RP ID is not valid for the calling origin, the browser rejects the request.</p><p>This relationship between the <strong>origin, RP ID, and credential</strong> is one of the foundations of WebAuthn’s phishing resistance.</p><p>Once the request passes the browser’s checks, the WebAuthn client interacts with an appropriate authenticator. Depending on the request and available authenticators, the user may be prompted to choose an authenticator or account, or the platform authenticator may be used.</p><h4>Step 3 =&gt; The authenticator creates the key pair</h4><p>The authenticator receives the request and performs several checks of its own.</p><p>It verifies that the request is well formed, that it supports at least one of the requested algorithms, and that it is willing to create a new credential for the given RP ID.</p><p>It then generates a new key pair for the credential.</p><p>The private key is protected by the authenticator and is not exposed to the RP. The<strong> </strong>public key will eventually be returned to the RP through the WebAuthn client.</p><p>Depending on the RP’s requirements and the authenticator’s capabilities, the authenticator may require user presence (UP) and/or user verification (UV) before creating the credential.</p><ul><li>User presence =&gt; touching a button on a security key or otherwise interacting with the authenticator.</li><li>User verification =&gt; involve a fingerprint, face recognition, or a PIN.</li></ul><p>These mechanisms help prevent credentials from being created without the user’s knowledge or authorization.</p><h4>Step 4 =&gt; The authenticator builds the attestation object</h4><p>The authenticator constructs an object called the attestation object. This object contains</p><ul><li>Authenticator Data =&gt; information about the credential and the authenticator.</li><li>Attestation Statement =&gt; a cryptographic statement about the credential’s origin, depending on the attestation type.</li></ul><p>We will look at authenticator data more closely later. For now, the key thing is that it includes the public key and a credential ID that the RP can use later to reference this credential.</p><h4>Step 5 =&gt; The response goes back to the RP</h4><p>The browser receives the result from the authenticator and returns a PublicKeyCredential object to the website’s JavaScript.</p><p>The RP then sends the relevant parts to its server, typically:-</p><ul><li>Credential ID</li><li>Client data</li><li>Attestation object</li></ul><p>The server parses and validates the response. Among other checks, it verifies that:-</p><ul><li>The challenge matches the one the RP originally generated.</li><li>The origin is the expected origin.</li><li>The RP ID hash is correct.</li><li>The required user-presence/user-verification flags are satisfied.</li><li>The credential’s public key and other authenticator data are valid.</li><li>The attestation is valid, if attestation was requested and provided.</li></ul><p>If the validation succeeds, the RP stores the credential information it needs for future authentication, most importantly the credential ID and public key, associated with the user’s account.</p><h4>What the server stores</h4><p>After registration, the server typically keeps a record like this:</p><pre>User: alice@examplebank.com<br>Credential ID: AbCdEf123...<br>Public Key: (elliptic curve point or Ed25519 public key)<br>Sign Count: 0<br>RP ID: examplebank.com</pre><p>Notice what is not stored, the private key! The server never sees it. The server only stores enough to verify future signatures. At this point, the user has a credential. The website has the public key. And the private key is locked inside the authenticator.</p><p>The next time the user wants to log in, the website can ask the authenticator to prove possession of that private key.</p><p>That is the authentication ceremony.</p><h3>Authentication Ceremony</h3><p>The authentication ceremony is where the passkey is actually used to log in.</p><p>This is the moment the cryptographic idea of challenge response becomes real. The website has the public key. The authenticator has the private key. The browser mediates between them.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*7dNnPCntrknMXgEwyBQ33w.png" /></figure><p>Let’s walk through it.</p><h4>Step 1 =&gt; The RP asks for authentication</h4><p>The user visits the login page and enters their username, or the website already knows which account they are trying to access.</p><p>The RP retrieves the credential IDs associated with that user account. Then it generates a fresh random challenge and calls.</p><pre>navigator.credentials.get({<br>  publicKey: {<br>    challenge: new Uint8Array(/* random bytes */),<br>    rpId: &quot;examplebank.com&quot;,<br>    allowCredentials: [<br>      { type: &quot;public-key&quot;, id: new Uint8Array(/* credential ID */) }<br>    ],<br>    userVerification: &quot;preferred&quot;,<br>    timeout: 60000<br>  }<br>});</pre><p>The allowCredentials list tells the browser which credentials the RP is willing to accept. If the list is omitted, the browser can use any discoverable credential the user has stored, which enables username-less authentication.</p><h4>Step 2 =&gt; The browser finds an authenticator and asks for an assertion</h4><p>The browser first performs the WebAuthn security checks. It verifies the calling origin and ensures that the requested rpId is valid for that origin.</p><p>The browser then finds a suitable authenticator that can provide the requested credential.</p><p>Before contacting the authenticator, the browser creates <strong>clientDataJSON</strong>. It contains information such as:</p><ul><li><strong>type</strong> =&gt; identifies this as a WebAuthn authentication operation.</li><li><strong>challenge</strong> =&gt; the fresh challenge generated by the RP.</li><li><strong>origin</strong> =&gt; the origin of the webpage making the WebAuthn request.</li></ul><p>The browser then hashes this data:-</p><pre>clientDataHash = SHA-256(clientDataJSON)</pre><p>The browser sends the <strong>clientDataHash</strong>, along with information such as the rpId and requested credential, to the authenticator.</p><p>The authenticator can then use this information to create the assertion.</p><h4>Step 3 =&gt; The authenticator verifies the user and signs</h4><p>The authenticator receives the rpId, clientDataHash, and requested credential information from the WebAuthn client.</p><p>It first checks whether it has the private key corresponding to the requested credential ID.</p><p>If it does, it performs the required user presence (UP) or user verification (UV) check:-</p><ul><li>The user might touch a button.</li><li>The user might scan a fingerprint.</li><li>The user might enter a PIN.</li></ul><p>Once the required user interaction is completed, the authenticator creates its authenticator data. This contains information such as:</p><ul><li>RP ID hash =&gt; a hash of the RP ID.</li><li>Flags =&gt; including user-presence and user-verification flags.</li><li>Signature counter =&gt; a counter maintained by the authenticator.</li></ul><p>The authenticator then combines this authenticator data with the <strong>clientDataHash</strong> it received from the browser:-</p><pre>signature = sign(<br>    privateKey,<br>    authenticatorData + clientDataHash<br>)</pre><p>This signature is the cryptographic proof that the authenticator possesses the private key and that it was produced in response to this specific challenge. It is returned to the browser along with the authenticator data.</p><h4>Step 4 =&gt; The response returns to the RP</h4><p>The browser returns an PublicKeyCredential to the website, which the RP forwards to its server.</p><p>The server then:-</p><ol><li>Looks up the credential ID and retrieves the corresponding public key.</li><li>Verifies that the challenge matches the one it sent.</li><li>Verifies that the origin in the client data matches the RP’s origin.</li><li>Verifies the signature using the stored public key.</li><li>Optionally checks the signature counter to detect cloned authenticators.</li></ol><p>If all checks pass, the server accepts the authentication.</p><h3>Phishing Resistance</h3><p><strong>Can a phishing website steal my passkey?</strong></p><p>No. A WebAuthn credential is scoped to a specific RP ID. The browser won’t allow a credential registered for one RP to be used by an unrelated website.</p><p><strong>Can an attacker steal the signature and reuse it?</strong></p><p>Not normally. Each authentication uses a fresh challenge. The signature is also tied to the authenticator data and client data hash, so a signature from one authentication cannot simply be reused for another challenge.</p><p><strong>Can the website see my private key?</strong></p><p>No. The private key is protected by the authenticator and is never exposed to the RP.</p><p><strong>Can the server steal my passkey if its database is hacked?</strong></p><p>The server stores the credential’s public key, not the private key. A database containing the public key does not give an attacker the ability to create valid signatures.</p><h3>What to explore next</h3><p>This article covered the core concepts behind passkeys and the WebAuthn authentication flow. There are several deeper topics worth exploring next:-</p><p>Authenticator Data Structure, Client Data (clientDataJSON), WebAuthn Internals, CTAP2, Discoverable Credentials, User Presence (UP) vs User Verification (UV), Attestation, Passkey Synchronization, Cross Device Authentication, Passkey Recovery, WebAuthn Extensions</p><h3>Conclusion</h3><p>Passwords asked us to share a secret. MFA made that harder to exploit, but still relied on secrets or codes.</p><p>Passkeys changed the model. Instead of sharing a secret, you prove you possess a private key.</p><p>Thanks for reading! ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=434c329b88d9" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Simple Code Beats Clever Code]]></title>
            <link>https://medium.com/@hddananjaya/simple-code-beats-clever-code-81545689f5c6?source=rss-cb3a0949a733------2</link>
            <guid isPermaLink="false">https://medium.com/p/81545689f5c6</guid>
            <category><![CDATA[programming]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[software-development]]></category>
            <category><![CDATA[software-engineering]]></category>
            <dc:creator><![CDATA[Akila Dananjaya]]></dc:creator>
            <pubDate>Sat, 04 Jul 2026 07:00:39 GMT</pubDate>
            <atom:updated>2026-07-04T07:00:39.134Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yCwByccmvxgMrbAUgayAAQ.jpeg" /></figure><p>One of the biggest changes in how I write software today compared to five years ago is that I no longer try to write clever code.</p><p>I try to write boring code.</p><p>That sounds strange at first. After all, software engineering is often associated with elegant algorithms, advanced language features, and reducing hundreds of lines into one beautiful expression.</p><p><strong>But production software isn’t a coding competition.</strong></p><p>It’s a maintenance problem.</p><h3>Why We Write Clever Code</h3><p>Almost every engineer has done this.</p><p>You discover a new language feature, a programming trick, or a clever abstraction and think:</p><p>“I can make this so much cleaner.”</p><p>Technically, you can.</p><p>The code becomes shorter.</p><p>It may even become more elegant.</p><p>The problem is that you’ve optimized for the person writing the code; not the dozens of engineers who will read it over the next few years.</p><h3>The Cost of Cleverness</h3><p>Imagine these two scenarios.</p><p>The first is a single expression with chained filters, maps, flatMaps, and reducers. It takes thirty seconds to understand every time someone reads it.</p><p>The second breaks the work into three clearly named variables.</p><p>It has more lines of code.</p><p>But someone new to the project understands it immediately.</p><p>Which one is better?</p><p>For production software, I almost always choose the second.</p><p>Reading code is far more common than writing it.</p><p>Every extra minute another developer spends understanding your clever solution is a cost that compounds over time.</p><h3>Clever Code Optimizes the Wrong Thing</h3><p>Many developers optimize for:</p><ul><li>Fewer lines of code</li><li>Fancy language features</li><li>“Smart” abstractions</li><li>Looking elegant</li></ul><p>Experienced engineers optimize for something different:</p><ul><li>Readability</li><li>Maintainability</li><li>Debuggability</li><li>Predictability</li></ul><p>Those qualities rarely make screenshots on social media.</p><p>But they’re the reason teams can safely ship software for years.</p><h3>A Real Production Problem</h3><p>Imagine you’re paged at 2:00 AM because production is down.</p><p>Would you rather debug:</p><ul><li>A single 150 character expression with nested transformations, or</li><li>Five simple steps with descriptive variable names?</li></ul><p>Production incidents aren’t the time to admire clever code.</p><p>They’re the time to understand what’s happening as quickly as possible.</p><p>Simple code wins.</p><h3>This Doesn’t Mean Repeating Yourself</h3><p>Simple doesn’t mean copy-paste.</p><p>Simple doesn’t mean avoiding abstractions.</p><p>Simple means choosing the solution that’s easiest for the next engineer to understand.</p><p>Sometimes that solution is highly abstract.</p><p>Sometimes it’s surprisingly direct.</p><p>The goal isn’t fewer lines of code.</p><p>The goal is less cognitive load.</p><h3>The Trade off</h3><p>Every engineering decision has a trade-off.</p><p>Clever code often gives you:</p><ul><li>Less code</li><li>More expressive syntax</li><li>A feeling of elegance</li></ul><p>But it also increases:</p><ul><li>Cognitive load</li><li>Debugging difficulty</li><li>Onboarding time</li><li>Maintenance cost</li></ul><p>That’s the trade off.</p><h3>When Would I Actually Do the Opposite?</h3><p>There are absolutely situations where concise or sophisticated code is the better choice.</p><p>Examples include:</p><ul><li>Performance critical algorithms</li><li>Mathematical implementations</li><li>Well known patterns within teams that understand them</li><li>Domain specific optimizations</li></ul><p>The point isn’t that clever code is bad.</p><p>The point is that most business applications don’t benefit from cleverness nearly as much as they benefit from clarity.</p><h3>Final Thoughts</h3><p>One lesson took me years to appreciate is the best engineers aren’t the ones who write the smartest code.</p><p>They’re the ones who write code that everyone else can confidently change.</p><p>Because software isn’t finished when it’s merged.</p><p>It’s just beginning.</p><p>Thanks for reading! ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=81545689f5c6" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[How to Wire SAML SSO into a Multi Tenant App with Cognito]]></title>
            <link>https://medium.com/@hddananjaya/how-to-wire-saml-sso-into-a-multi-tenant-app-with-cognito-5e54e0968597?source=rss-cb3a0949a733------2</link>
            <guid isPermaLink="false">https://medium.com/p/5e54e0968597</guid>
            <dc:creator><![CDATA[Akila Dananjaya]]></dc:creator>
            <pubDate>Thu, 04 Jun 2026 14:05:28 GMT</pubDate>
            <atom:updated>2026-06-04T14:11:16.987Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*yd-0Dw8R5iP1DWpoG089vg.png" /></figure><p>For a B2B product, single sign-on (SSO) isn’t a feature, it’s a gate. A big company’s team will not let a few hundred employees create yet another set of passwords for yet another tool. It’s the difference between a great demo and a signed customer. At <a href="https://skillful.ly/">Skillfully</a>, this was the unlock standing between us and the kind of logos that move a roadmap.</p><p>So, no pressure. Just go implement SAML.</p><p>Every developer who’s seen those four letters gets the same little flicker of dread. SAML has earned its scary reputation. XML, signed assertions, metadata files, entity IDs, certificate rotation. It reads like a protocol designed by a committee that had a personal grudge against you specifically.</p><p>I budgeted two weeks and it took a fraction of that because the scariest part of SAML is a part you don’ actually write. AWS Cognito eats it. What’s left is a smaller, much more interesting problem.</p><p>Here’s how it really works, the opinions that formed along the way, and the three things that quietly tried to ruin my week.</p><h3>You’re not implementing SAML, you’re integrating with a broker</h3><p>When you put Cognito in front of a SAML IdP, Cognito is the Service Provider. It owns the SP metadata. It holds the IdP’s signing certificate. It receives the SAML assertion, validates the signature, checks the conditions, and maps the attributes. Your application code never touches a single line of XML. By the time anything reaches your backend, SAML is over, and you’re holding an ordinary OIDC JWT.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EGv2fBevY9xBcEfdqwc2lw.png" /><figcaption>The round trip of a single SSO login</figcaption></figure><p>So the project stopped being “implement SAML” and became small, normal problems:</p><ol><li>Add the IdP to Cognito.</li><li>Send the user to the right IdP.</li><li>Kick off the login.</li><li>Catch the user when they come back.</li><li>Figure out who they are and what they can do.</li><li>Don’t create the same user twice.</li></ol><h3>Add the IdP to Cognito</h3><p><a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-pools-saml-idp.html">Official Developer Guide Reference</a></p><p>Before anything else can work, Cognito has to know the customer’s IdP even exists. It’s all clicking around the AWS Console (or Terraform, if you’re disciplined), done once per customer. It’s also the step that actually turns Cognito into the Service Provider.</p><p>How to resolve it four things have to happen:</p><ol><li>Create the SAML provider in your user pool. You feed Cognito the customer’s IdP metadata, either an uploaded metadata XML file or, better, a metadata URL. Use the URL if they’ll give you one. It refreshes automatically when their signing certificate rotates, so you don’t wake up to “SSO is down” the morning their cert expires.</li><li>Map the attributes. Tell Cognito which SAML assertion attributes become which user claims, at minimum email and name. Get this wrong and logins “succeed” but show up with a null email, which is genuinely confusing.</li><li>Send your SP details back to the IdP. SAML trust runs both ways. In Step (1) you handed Cognito the IdP’s metadata. Now you have to hand the IdP Cognito’s side of it; the ACS URL, which is where the IdP posts its SAML response, and the SP entity ID, which is the identifier the IdP uses to confirm it’s talking to your Cognito pool. Your customer enters those two values in their IdP.</li><li>Let the app client use the provider. In the user pool’s app client settings, the new SAML provider has to be explicitly switched on, alongside your callback URLs and OAuth scopes. Skip it and `federatedSignIn` just throws a strange error.</li></ol><h3>Send the user to the right IdP</h3><p>The second you have more than one customer, you have a routing problem. One uses Okta, another uses Entra, a third has some on prem ADFS box. When a user shows up to log in, which one do you send them to? You can’t just ask because most users have no idea what an “identity provider” is, and the ones who do, don’t want to hunt through a dropdown.</p><p>The cleanest answer is to bind the IdP to whatever the user arrives through some piece of context you already have before they authenticate. In our case that’s an “Invite”. At Skillfully a user joins through an invite link tied to a campaign tied to a company, so by the time they reach login we already know which company they belong to. Your hook might be different; the email domain they type, the subdomain they landed on (acme.yourapp.com), or an org ID baked into the URL. The principle is the same. Figure out the tenant from context, not from asking. Whatever that hook is, you store one row per customer, and the only field that really matters is the name of their provider inside Cognito.</p><pre>model IdentityProvider {<br>  id                          String   @id @default(uuid())<br>  name                        String<br>  enabled                     Boolean  @default(true)<br>  cognitoIdentityProviderName String   @unique<br>  companyId                   String<br>  company   Company    @relation(fields: [companyId], references: [id])<br>  campaigns Campaign[]<br>  users     User[]<br>}</pre><p>Here companyId and campaigns are our tenant hooks. Swap them for whatever yours is (a domain, an org ID, a workspace). The field that does the real work is cognitoIdentityProviderName.It&#39;s a foreign key into AWS expressed as a string, and it has to match the provider name in your Cognito user pool exactly.</p><p>Then, before login, you look up the tenant and answer one question. “Does this user need SSO, and if so, which provider?” For us that lookup hangs off validating an invite; in your app it might hang off the email domain or the subdomain. Either way the shape of the answer is identical:</p><pre>const provider = invitation.campaign.identityProvider;<br>const ssoConfig = provider?.enabled<br>  ? { identityProvider: provider.cognitoProviderName }<br>  : null;<br>return { status: &#39;valid&#39;, ssoConfig };</pre><p>Whatever drives that lookup, the endpoint behind it is unauthenticated because the user has no session yet, since they can’t log in until they know where to log in. That’s fine, as long as you’re deliberate about it answering exactly one question and nothing more. It says “yes, SSO, here’s the provider handle.” It does not return emails, tenant config, or the list of every IdP you’ve onboarded. Thin endpoints with no session attached should give up the absolute minimum.</p><h3>Kick off the login</h3><p>I braced for the hard part here. It never came. Starting the login is just a redirect. You send the user’s browser to your Cognito hosted login URL with the provider name attached, and Cognito takes over from there. We happen to use Amplify, so for us that redirect is a single call.</p><pre>federatedSignIn: async (identityProvider: string) =&gt; {<br>  await Auth.federatedSignIn({ customProvider: identityProvider });<br>},</pre><p>There’s one setting in the config that actually matters though, the OAuth response type:</p><pre>Amplify.configure({<br>  Auth: {<br>    region: process.env.NEXT_PUBLIC_POOL_REGION,<br>    userPoolId: process.env.NEXT_PUBLIC_NEXT_POOL_ID,<br>    userPoolWebClientId: process.env.NEXT_PUBLIC_USER_POOL_WEB_CLIENT_ID,<br>    oauth: {<br>      domain: process.env.NEXT_PUBLIC_COGNITO_DOMAIN,<br>      scope: [&#39;openid&#39;, &#39;email&#39;, &#39;profile&#39;],<br>      redirectSignIn: `${process.env.NEXT_PUBLIC_CLIENT_FRONTEND}/join/callback`,<br>      redirectSignOut: process.env.NEXT_PUBLIC_CLIENT_FRONTEND,<br>      responseType: &#39;token&#39;,<br>    },<br>  },<br>});</pre><p>This setting decides how the login tokens come back to your app. &#39;token&#39; is the easy way. The tokens come back inside the URL. It works but the safer option is &#39;code&#39;, where the browser swaps a one time code for the tokens behind the scenes, so the tokens never show up in the URL.</p><h3>Don’t create the same user twice</h3><p>This is the one that isn’t in the happy path and will absolutely happen in production.</p><p>Picture jane@acme.com. She signed up with a password months ago, back before Acme had SSO. Then Acme turns on SAML, Jane clicks &quot;log in with SSO,&quot; authenticates through Okta. Left to its defaults, creates a brand new user for the federated identity. Same person, same email, two accounts, two different sub values. Now every piece of code that looks a user up by email has a coin flip to make, and your audit trail is split in half. It looks like a UX glitch. It&#39;s actually an identity bug, which is the worst kind, because identity is the thing everything else trusts.</p><p>Here is how I ended up fixing it. A Cognito “PreSignUp” Lambda runs on every federated sign up, checks whether a native account already exists for that email, and links the new identity onto it instead of spawning a duplicate. Other approaches exist, but this is the one that stuck.</p><pre>const nativeUser = await findNativeUserByEmail({ cognitoClient, userPoolId, email });<br>if (!nativeUser?.Username) {<br>  return;<br>}<br>await linkProviderToNativeUser({<br>  cognitoClient,<br>  userPoolId,<br>  nativeUsername: nativeUser.Username,<br>  externalIdentity,<br>});<br>await keepNativeUserVerified({ cognitoClient, userPoolId, nativeUsername: nativeUser.Username });</pre><p>One thing worth saying out loud, because it’s easy to do by accident. Linking accounts on matching email only works if you trust the IdP to have verified that email. That’s a reasonable assumption with a real corporate IdP. That’s the entire point of the federation contract. <strong>But if you ever federate with something that lets users assert whatever email they like, “link by email” turns into a free account takeover.</strong> It’s a footgun that only goes off in specific company, but it goes off loud.</p><h3>The three things that actually annoyed me</h3><p>A writeup that only shows the parts that worked. Here’s the honest residue.</p><h4>Config with no diff</h4><p>Configuration that lives in a console is configuration you will forget exists. The SAML attribute to Cognito claim mapping; the thing that decides whether email and name even show up in your token is point and click setup in the AWS console. No PR. No diff. No review. It works perfectly until someone fat fingers a claim name and suddenly logins arrive with a null email and no git history to blame. Anything that can silently break auth and isn&#39;t in version control deserves real suspicion. At minimum, document it and alert when an expected claim goes missing; better, push it into infrastructure as code so a human has to review the change.</p><h4>The fake logout</h4><p>“Log out” doesn’t mean what users think it means. Killing your local session does nothing to the IdP session. The user clicks log out, clicks log in, and gets instantly re authenticated with no prompt; which looks exactly like the logout button is broken. You have to route SSO users through the IdP’s hosted logout. Easy to forget!</p><h4>Auth config that hides in a console</h4><p>The hardest part of SSO is not building it, it is debugging it. Half the configuration lives in the customer’s IdP, which you cannot see or touch. A login fails and you genuinely cannot tell if the bug is your attribute mapping or their assertion until someone on their side sends you logs. Build for this from day one. Log the raw failure, surface a clear error code, and never make a failed SSO look like a generic crash.</p><h3>What I’d actually tell a teammate</h3><p>If a colleague picked up a SAML ticket tomorrow, the advice is short:</p><ul><li>You’re probably not writing SAML. If you’re on any decent IdP broker, the protocol is their problem. Don’t reimplement it, and don’t feel guilty about it!</li><li>The bugs won’t be in the crypto. They’ll be in a mislabeled variable, a logout that doesn’t log out, and a critical setting hiding in a console nobody opens.</li><li>Cognito is frustrating to work with and still the right call here. Both things are true. The day you stop hand rolling assertion validators is a good day.</li></ul><p>The enterprise checkbox that gates deals turned out to be a few days of careful, ordinary backend work. Most of it was knowing what <em>NOT</em> to build, then paying attention to the small stuff that was actually ours.</p><p>Thanks for reading! ❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5e54e0968597" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[An Invoice Generator for Small Businesses]]></title>
            <link>https://medium.com/@hddananjaya/simplifying-invoicing-for-small-businesses-1ab56ed45fcc?source=rss-cb3a0949a733------2</link>
            <guid isPermaLink="false">https://medium.com/p/1ab56ed45fcc</guid>
            <category><![CDATA[free-invoice-generator]]></category>
            <category><![CDATA[invoice]]></category>
            <category><![CDATA[small-business]]></category>
            <category><![CDATA[invoice-generator]]></category>
            <category><![CDATA[free-website]]></category>
            <dc:creator><![CDATA[Akila Dananjaya]]></dc:creator>
            <pubDate>Mon, 17 Mar 2025 01:07:25 GMT</pubDate>
            <atom:updated>2025-03-17T15:23:04.812Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*Fzj6EZcuvGX26iAD.png" /><figcaption>Free Bill Generator screenshot</figcaption></figure><h3>Why I Built FreeBillGenerator</h3><p>Over time, I noticed that many invoicing tools on the market are designed with large enterprises in mind. They often come with bulky interfaces, unnecessary features, and costs that just don’t make sense for a small business or a solo entrepreneur. I wanted to create something simple and effective; something that lets you quickly generate professional invoices without the extra hassle.</p><p>That’s why I built <a href="https://www.freebillgenerator.com/">FreeBillGenerator</a> ; a minimalistic, open-source invoicing tool that works entirely in your browser, free of watermarks and limitations.</p><h3>What Makes It Different</h3><ul><li><strong>Minimalistic Design:</strong> Free Bill Generator cuts through the clutter with a clean, intuitive interface. No endless menus or complicated options.</li><li><strong>Browser-Based Convenience:</strong> There’s no need to install software or worry about updates. As long as you have an internet connection, you can generate invoices directly from your browser.</li><li><strong>Totally Free &amp; Open Source:</strong> I believe in transparency and community. Free Bill Generator is open source, which means you’re free to use it, contribute to it, and even customize it if you want to. No hidden fees or watermarks.</li></ul><p>Website: <a href="https://www.freebillgenerator.com/">https://www.freebillgenerator.com/</a></p><p>Repo: <a href="https://github.com/hddananjaya/freebillgenerator.com">https://github.com/hddananjaya/freebillgenerator.com</a></p><p>Good luck! 🎉👋</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1ab56ed45fcc" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Authenticate  to firebase-admin using Google End User Credentials]]></title>
            <link>https://medium.com/diwala/authenticate-to-firebase-admin-using-google-end-user-credentials-32f0e916c7be?source=rss-cb3a0949a733------2</link>
            <guid isPermaLink="false">https://medium.com/p/32f0e916c7be</guid>
            <dc:creator><![CDATA[Akila Dananjaya]]></dc:creator>
            <pubDate>Sun, 29 May 2022 02:49:25 GMT</pubDate>
            <atom:updated>2022-08-30T09:49:01.374Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kmHEEJX5uVHehgx4pX6zNw.png" /></figure><h3>Authenticate to firebase-admin using Google End User Credentials</h3><h3>Introduction</h3><p>We usually use service accounts in order to authenticate to GCP services including firebase, but it’s not an optimal solution because you have to keep your key in your local environment. So there is always a security concern if we don’t properly manage them. GCP also discourages downloading service account keys.</p><p>In this post, I’m going to quickly describe how to use End User Credentials (EUC) which is so far the best option I found. This suits well when you want to authenticate to firebase in your local environment.</p><h3>How?</h3><p>Firebase documentation is self-explanatory. Check this particular section in their docs to learn how to create a client secret and use glcoud CLI.</p><p><a href="https://firebase.google.com/docs/admin/setup#testing_with_gcloud_end_user_credentials">https://firebase.google.com/docs/admin/setup#testing_with_gcloud_end_user_credentials</a></p><h4>Authorize for Google APIs</h4><p>If you want to access services like Firestore, you have to add the necessary scopes. Check this reference to find out how to use the flag.</p><p><a href="https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login#--scopes">https://cloud.google.com/sdk/gcloud/reference/auth/application-default/login#--scopes</a></p><p>Example command with Firestore permissions:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/157970871322e550d7bd9f43eab95780/href">https://medium.com/media/157970871322e550d7bd9f43eab95780/href</a></iframe><p>Once you are authenticated, it will save credentials here:</p><pre>$HOME/.config/gcloud/application_default_credentials.json</pre><h3>Advantages</h3><p>The main advantage is that you can delete your client secret file after using gcloud auth the command. As you can see in the docs, firebase-admin can use default credentials in order to authenticate to Firebase services.</p><h3>Disadvantages</h3><p>The main disadvantage is that we can’t automate the process of creating client secrets. You have to go to the GCP UI and manually create them. It’s so much better if we can automate this process because then we can plug the whole process into a Yarn/NPM script and forget about it.</p><h4>gcloud CLI</h4><p>According to GCP, we can use gcloud alpha iap oauth-clients command to create client id files, but it doesn’t have a flag to pass application-type which we need to set as Desktop in order to use it with Firebase.</p><p><a href="https://cloud.google.com/iap/docs/programmatic-oauth-clients">https://cloud.google.com/iap/docs/programmatic-oauth-clients</a></p><h4>gcloud REST API</h4><p>The same issue applies to their REST API.</p><p><a href="https://cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients">https://cloud.google.com/iap/docs/reference/rest/v1/projects.brands.identityAwareProxyClients</a></p><h4>Terraform</h4><p>There is a resource called google_iap_client in Terraform. But again, we can’t pass application-type here as well.</p><p>These GCP’s tools are still in alpha/beta state and hopefully, in the future, they will add all the flags we need.</p><p>CC: <a href="https://medium.com/u/4f3f4ee0f977">Google Cloud</a>, <a href="https://medium.com/u/991272e72e68">Google Developers</a></p><p>Good Luck! 🎉</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32f0e916c7be" width="1" height="1" alt=""><hr><p><a href="https://medium.com/diwala/authenticate-to-firebase-admin-using-google-end-user-credentials-32f0e916c7be">Authenticate  to firebase-admin using Google End User Credentials</a> was originally published in <a href="https://medium.com/diwala">Diwala</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>