<?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 Rindish Krishna on Medium]]></title>
        <description><![CDATA[Stories by Rindish Krishna on Medium]]></description>
        <link>https://medium.com/@rindishkrishna?source=rss-3cc9fa71d1a1------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*vdp7UKyxSQTdWJin2GbB2A.jpeg</url>
            <title>Stories by Rindish Krishna on Medium</title>
            <link>https://medium.com/@rindishkrishna?source=rss-3cc9fa71d1a1------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 14:47:59 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@rindishkrishna/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[Understanding OAuth, OIDC, and SAML: Modern Authentication and Authorization Protocols]]></title>
            <link>https://medium.com/@rindishkrishna/understanding-oauth-oidc-and-saml-modern-authentication-and-authorization-protocols-bce9ac547fe0?source=rss-3cc9fa71d1a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/bce9ac547fe0</guid>
            <category><![CDATA[aml]]></category>
            <category><![CDATA[authorization]]></category>
            <category><![CDATA[authentication]]></category>
            <category><![CDATA[oauth]]></category>
            <category><![CDATA[oidc]]></category>
            <dc:creator><![CDATA[Rindish Krishna]]></dc:creator>
            <pubDate>Tue, 26 Nov 2024 15:45:43 GMT</pubDate>
            <atom:updated>2024-11-26T15:45:43.171Z</atom:updated>
            <content:encoded><![CDATA[<p>In today’s interconnected digital world, secure and seamless user authentication and authorization are crucial. Let’s explore three widely used protocols—OAuth,<strong>OIDC</strong>, and <strong>SAML—their</strong> differences and their applications.</p><h4>OAuth: Secure Authorization Without Credentials</h4><p><strong>Key Characteristics:</strong></p><ul><li><strong>Authorization Only:</strong> OAuth handles authorization, not authentication.</li><li><strong>Actors Involved:</strong></li><li><strong>Resource Owner:</strong> The user who owns the data (e.g., you).</li><li><strong>Client:</strong> The application requesting access (e.g., your app).</li><li><strong>Resource Server:</strong> Stores the data (e.g., Google Drive API).</li><li><strong>Authorization Server:</strong> Issues Access Tokens after verifying authorization.</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*obtAafr7Ugl1HTGnz0aUSg.png" /><figcaption>Basic Oauth flow</figcaption></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CDw8AhraXh2t3v0diNnmSA.png" /><figcaption>detailed sequence diagram on Oauth flow</figcaption></figure><p>OAuth Flow Example:</p><p><strong>Authorization URL:</strong> Redirect users to authenticate and authorize:</p><pre>https://accounts.google.com/o/oauth2/v2/auth<br>?scope=https://www.googleapis.com/auth/drive<br>&amp;include_granted_scopes=true<br>&amp;response_type=code<br>&amp;state=zsjnsdi88hsdkm<br>&amp;redirect_uri=https://yourapp.com/oauth2callback<br>&amp;client_id=YOUR_CLIENT_ID</pre><p><strong>Token Exchange:</strong> Use the authorization_code to request an Access Token:</p><pre>POST https://oauth2.googleapis.com/token<br>Content-Type: application/x-www-form-urlencoded<br>grant_type=authorization_code&amp;<br>code=YOUR_AUTHORIZATION_CODE&amp;<br>redirect_uri=https://yourapp.com/oauth2callback&amp;<br>client_id=YOUR_CLIENT_ID&amp;<br>client_secret=YOUR_CLIENT_SECRET</pre><p>Response Example:</p><pre>{<br>  &quot;access_token&quot;: &quot;AYjcyMzY3ZDhiNmJkNTY&quot;,<br>  &quot;token_type&quot;: &quot;Bearer&quot;,<br>  &quot;expires&quot;: 3600<br>}</pre><p><strong>OIDC: Authentication Layer Built on OAuth</strong></p><p>OpenID Connect (OIDC) extends OAuth to include authentication, verifying the identity of users logging into an application. It is widely used for <strong>Single Sign-On (SSO)</strong> solutions.</p><p><strong>Features of OIDC:</strong></p><ul><li>Uses <strong>JWT (JSON Web Tokens)</strong> for compact and efficient data exchange.</li><li>Enables user identity verification alongside resource access.</li><li>Ideal for modern, lightweight authentication needs.</li></ul><p><strong>SAML: Legacy Authentication Protocol</strong></p><p>Security Assertion Markup Language (SAML) is another popular protocol used for authentication, primarily in enterprise systems.</p><p>Key Differences:</p><p>Data Format: SAML uses XML, which is larger and heavier compared to JWT used in OIDC.<br>Use Cases: Though robust, SAML is considered outdated and is increasingly replaced by OIDC for modern applications.</p><h4>Conclusion</h4><ul><li><strong>OAuth:</strong> Ideal for secure, user-delegated authorization.</li><li><strong>OIDC:</strong> Modern authentication and authorization protocol with support for SSO</li><li><strong>SAML:</strong> Legacy protocol suitable for older enterprise systems.</li></ul><p>By choosing the right protocol for your application, you can achieve both robust security and a seamless user experience.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=bce9ac547fe0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Unity VR Development Blueprint of Thoughtworks E4R project]]></title>
            <link>https://medium.com/e4r/unveiling-the-unity-vr-development-blueprint-of-thoughtworks-e4r-project-a64ba107a2c9?source=rss-3cc9fa71d1a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/a64ba107a2c9</guid>
            <category><![CDATA[vr]]></category>
            <category><![CDATA[unity]]></category>
            <category><![CDATA[game-development]]></category>
            <category><![CDATA[science-communication]]></category>
            <category><![CDATA[virtual-reality]]></category>
            <dc:creator><![CDATA[Rindish Krishna]]></dc:creator>
            <pubDate>Tue, 06 Feb 2024 05:03:36 GMT</pubDate>
            <atom:updated>2024-02-06T05:22:28.559Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0O2zgEdjqgEqsQZQVss2Tg.jpeg" /></figure><p>Have you ever wondered how great it would be if you could teleport to another location? What if I say it’s actually kind of possible? Sounds unbelievable? Well, then this article is just perfect for you.</p><p>Yes, VR, or virtual reality, to be precise! That covert magical entrance is VR. Cool right? Let’s dig in deeper.</p><p>As a kid, I was always very fond of VR games. Since then, every time I spot a VR game or experience zone in adventure parks and shopping malls, I remember compelling my parents to let me play. There was this urge, or an unquenchable thirst, to learn more about VR, but never once did I even think that I would actually get to develop a VR application with people experienced in the field. Well, I guess Thoughtworks read my mind!</p><p>It all started one day when I got a call from the Thoughtworks staffing team and was asked if I had experience in Unity or C#. Although I didn’t have experience in Unity or C#, I was curious to know more about the project. “Its a Unity project to build a VR experience zone as part of Thoughtworks <a href="https://www.thoughtworks.com/en-in/clients/engineering-research">Engineering for Research</a> (E4R), and we are looking for someone who is experienced in Unity,” I recall them saying.</p><p>Thoughtworks Engineering for Research E4R Practice is an initiative to apply computational methods to advance research in scientific disciplines such as astronomy, physiology, genomics, economics, and disaster response in societies. I realised what an awesome opportunity I had to be a part of developing a VR application. I let them know my interest in being able to learn Unity, after which they connected me with the project manager (PM) to get more information about the project. I got a catch-up with PM <a href="https://www.linkedin.com/in/satyavati-kharde/">Satyavati Kharde</a>. She explained, “With this project, we aim to replicate the drug discovery process in an interactive virtual environment.”</p><p><strong>Learning Path</strong></p><p>Unity is a cross-platform Game engine that has been gradually extended to VR, AR, etc. In Unity, the primary programming language used for scripting is C#. Coming from a web/app development background in the software industry, these concepts were completely new to me.</p><p>First of all, we need to understand the UI functionalities of the Unity Editor. Development in Unity is a combination of both UI functionalities and scripting. The next step is to learn scripting. To do that, it is important to learn the basics of C#.</p><p>VR development came into Unity as an extension to existing features of Unity as a game engine. Hence, most of the game development concepts are also needed for VR development.</p><figure><img alt="roadmap" src="https://cdn-images-1.medium.com/max/940/0*lcfqX7l0BWWpIWuK" /><figcaption>roadmap</figcaption></figure><p><strong>C#</strong></p><p>So, C# is a language belonging to the C-like family of languages. Its syntax is similar to Java and C++. Having basic OOP knowledge and experience in any other programming language will make it easy to learn C# quickly.</p><p>Since I have experience in full-stack web development and have worked with Java, C++, etc., learning the basics of C# was not a big challenge for me. I did not have to spend extra time learning C#. Following articles and documentation during development was sufficient to get the syntax.</p><p><strong>Game Development in Unity</strong></p><p>A game in Unity is basically a combination of UI assets that perform certain actions based on the script. Unity has a tutorial webpage that has learning pathways to some of the classic games. You can get a fair idea about game development from it. They also provide dummy assets to make it easy to start and to keep focus on the core concept.</p><p>I managed to complete a small game tutorial from it, <a href="https://learn.unity.com/project/roll-a-ball">Roll a Dice</a>. This game will get you onboarded in Unity game development, starting with the project setup, moving the player, changing camera position, setting up the game environment, game object collisions, game UI, and game physics to build the game for a specific OS or environment.</p><p>Being a passive gamer that I have been since childhood, I thought of building a small 2D game in Unity as a pet project to learn Unity in a better way, which can be implemented in our VR project. Just like that, I started to build a game from scratch inspired by the classic game Flappy Bird.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WXn3G2gbruTG6A5_svSqmw.png" /></figure><p>The first primary job was to create the UI in Unity. I did struggle a bit there to develop the UI components properly in Unity, to be honest, but I did it! Thanks to this <a href="https://www.youtube.com/watch?v=xmR07iBW7zk&amp;list=PL1aAeF6bPTB5N-_01xjNIOg9_refqTxVv">youtube playlist</a>. It really helped me quite a lot.</p><p>I also needed some 2D assets for the game, which I managed to get from open-source websites like <a href="https://opengameart.org/">opengameart</a>. Although the initial steps took me a while, I was very excited to continue further. It took me a week to finally complete the game based on my idea, which I then shared with a couple of my friends, and guess what? They found it interesting, and there were people who actually kept playing to beat the high score!</p><p>As the final step, I fine-tuned the game again and again to make it deploy-ready and compactible for all browsers and devices, and then I deployed it to <a href="https://markdown-to-medium.surge.sh/itch.io">itch.io</a>.</p><p>Feel free to check out my game at <a href="https://rindishkrishna.itch.io/fluffybird-rino">Fluffy Bird Rino</a></p><p>Github <a href="https://github.com/rindishkrishna/fluffybird_rino">link</a></p><p><strong>VR development in Unity</strong></p><p>If you are still reading, congratulations! You have the prerequisites covered. Now let’s dive into our niche, “VR development.”</p><p>It’s always good to have a real VR device for development. As an alternative, the <a href="https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.0/manual/xr-device-simulator.html">XR device simulator</a> can be used, but it was painful for development.</p><p>I received an <a href="https://www.meta.com/quest/products/quest-2/">Oculus Quest 2</a> by Meta from Thoughtworks for development. It has a VR headset and two hand controllers. It was so exciting to hold the headset in hand, like a dream come true. I did try a couple of VR games and apps, and I am not lying, it was so cool! 😜</p><p>I would say learning VR throughout and starting our project wasn’t a great idea because the topic is so vast. So, I decided to learn through the development journey of our drug discovery simulation project.</p><p>There are a couple of initial setups to be followed in order to configure a new Unity project for VR that is specific to Oculus Quest 2. I followed a <a href="https://www.udemy.com/course/oculus-quest-development-with-unity">Udemy course</a> for the same.</p><p>First and foremost, we need a virtual 3D room for interaction. For that, we need a 3D model of the room, which we purchased from <a href="https://sketchfab.com/">sketchfab</a> and tuned according to our needs. The remaining 3D models we want are those of a scientist and a bot. We got an appropriate model for the scientist from Skechfab. However, we couldn’t find a suitable model for the robot online. So, we decided to build one with <a href="https://www.blender.org/">blender</a>. Thanks to <a href="https://jigsaw.thoughtworks.net/consultants/37817">Ashutosh Dusane</a>, a senior UI/UX designer at Thoughtworks, who created the bot from scratch!</p><figure><img alt="unity IDE" src="https://cdn-images-1.medium.com/max/940/0*LKq60piEa5cjMW2j" /></figure><p>After putting all this in place, we have to build the scene, or, in other words, the virtual space.</p><p>The next objective is to make the scientist and bot animate according to the storyboard script. For that, I learned <a href="https://docs.unity3d.com/Manual/AnimationSection.html">animation</a> in Unity. For basic animations, <a href="https://www.mixamo.com/#/">mixamo</a> can be used for pre-trained animations.</p><p>The next step is to create user interaction with two 3D models: a ligand and a protein. Users should be able to grab, rotate, or move them using the VR hand controller and then position the ligand at the correct binding site of the protein. <a href="https://www.linkedin.com/in/ashutosh-dusane-9253068/">Ashutosh Dusane</a>, the UI/UX designer, designed the 3D models for proteins and ligands in Blender.</p><figure><img alt="protein ligand" src="https://cdn-images-1.medium.com/max/940/0*qaLQtVfVSgAe9VUO" /></figure><p><strong>Challenges</strong></p><p>The challenging part was the user interaction with them using the hand tracking device. I went through the official <a href="https://docs.unity3d.com/Manual/index.html">documentation</a> to implement concepts of hand controller actions, grab, camera angle, user locomotion, etc.</p><p>I also faced other blockers while developing the user interaction with the 3D models because of the configuration issues in the Unity editor. I got help from <a href="https://www.linkedin.com/in/neelarghya-mandal/">Neelarghya mandal</a>, an experienced Unity XR developer.</p><p><strong>Conclusion</strong></p><p>VR technology has emerged as a bridge between imagination and reality, offering boundless possibilities across various industries. Its scope extends far beyond mere entertainment, delving into realms of education, healthcare, training, and beyond.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a64ba107a2c9" width="1" height="1" alt=""><hr><p><a href="https://medium.com/e4r/unveiling-the-unity-vr-development-blueprint-of-thoughtworks-e4r-project-a64ba107a2c9">Unveiling the Unity VR Development Blueprint of Thoughtworks E4R project</a> was originally published in <a href="https://medium.com/e4r">Thoughtworks: e4r™ Tech Blogs</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Mocks, Stubs and Fakes — Test Doubles in unit testing]]></title>
            <link>https://medium.com/@rindishkrishna/mocks-stubs-and-fakes-in-unit-testing-82154b22c23c?source=rss-3cc9fa71d1a1------2</link>
            <guid isPermaLink="false">https://medium.com/p/82154b22c23c</guid>
            <category><![CDATA[software-testing]]></category>
            <category><![CDATA[testing]]></category>
            <category><![CDATA[unit-testing]]></category>
            <category><![CDATA[test-doubles]]></category>
            <dc:creator><![CDATA[Rindish Krishna]]></dc:creator>
            <pubDate>Tue, 30 May 2023 09:32:37 GMT</pubDate>
            <atom:updated>2023-05-31T12:35:49.330Z</atom:updated>
            <content:encoded><![CDATA[<p>As we know, unit testing involves testing a piece of code in isolation. Dependencies pose a challenge for unit testing. At some point, we might feel that the subject under test has gotten out of hand. Here is where <strong>test doubles — mocks, stubs, and fakes</strong> come into play! All these will be explored in detail later on.</p><p><strong>Test doubles</strong> are objects that stand in for other objects in a unit test. <strong>Mocks, stubs, and fakes</strong> are all test doubles.</p><h3><strong>Mocks</strong></h3><p><strong>Mocks</strong> are objects that will have predefined behavior. Mocks don’t have working implementations. Instead, they have pre-programmed expectations about how they will be used in the code. A mock object can be programmed in such a way that it should return a specific value when it is called with certain arguments.</p><p><em>e.g: suppose you have developed a weather application that takes the actual temperature in real time and alerts you when it is really hot or really cold. Now, for testing this, the developer or programmer has to wait for a particular temperature to be reached to provide the alert. This is not practically feasible. In this case, mocks can be used. Mocks simulate the weather application, and they can be programmed to provide the alert regardless of the real temperature. In this way, the application can be tested in isolation. So, in short, mocks mimic real objects by having the same interface, making the client unaware of whether it is using a real object or a mock object. Mocks just check the functionality. Many of the available mock object frameworks allow programmers to specify the methods that can be invoked on a mock object, the parameters that can be passed to them, and the values to be returned as well.</em></p><p>Let’s look at one sample Ruby Rspec code where mock is being used. Here using mocks we will be able to check if the method move is called when the argument left is passed.</p><figure><img alt="example" src="https://cdn-images-1.medium.com/max/980/1*Rxgm5i-YDSIIANU68gE4kQ.png" /><figcaption>mocks sample code</figcaption></figure><h3><strong>Stubs</strong></h3><p><strong>Stubs</strong> are objects that have predefined behavior. However, unlike mocks, they are not programmed to expect specific calls. Instead, they <strong>return values</strong> when they are called. Stubs also don’t have working implementations. A stub can be programmed to always return the same value when called with any arguments.</p><p><em>e.g: consider a program that contains four modules. The first three modules are now finished, but the final one is only halfway finished. Since all four modules must be finished before the application can be run, this could be a problem. Stubs can solve this problem. A stub can be used in place of the incomplete fourth module. If the fourth module must always return “true” in order for the unit test to continue, a stub with the appropriate functionality can be created.</em></p><p>Let&#39;s have a look at this sample Ruby code for stubs below. The allow method is what makes this a stub. We are allowing our testing object double (&quot;mars_over”) to receive and respond to this method, but we aren’t checking if it’s being called.</p><figure><img alt="sample code" src="https://cdn-images-1.medium.com/max/656/1*wHtEqmOaGTwbT2pA1Ka2xw.png" /><figcaption>Stubs sample code</figcaption></figure><blockquote>So what is the difference between a stub and a mock?</blockquote><p>Here is a clue: stubs can never fail a unit test, but mocks can. That is something you can think about!</p><h3><strong>Fakes</strong></h3><p><strong>Fakes</strong> are objects that have working implementations but are not the same as production ones. Usually they take some shortcuts and have a simplified version of the production code. Fakes throw exceptions, return values, and do a lot more to test the code.</p><p><em>e.g: in order to check the performance of a car, car simulators can be used instead of actually testing the car. Obstacles can be placed or unexpected actions can be provided to check how the car responds. Here, the simulator acts as a fake. An actual environment is created that is similar to the real one.</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=82154b22c23c" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>