<?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 Aman Asrani on Medium]]></title>
        <description><![CDATA[Stories by Aman Asrani on Medium]]></description>
        <link>https://medium.com/@amanasrani1712?source=rss-1f7f369a963c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*J0FBDSG4V3TU_VJ8</url>
            <title>Stories by Aman Asrani on Medium</title>
            <link>https://medium.com/@amanasrani1712?source=rss-1f7f369a963c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 21:33:36 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amanasrani1712/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[Week 11 and Week 12 Progress Report]]></title>
            <link>https://medium.com/@amanasrani1712/so-what-i-have-done-in-these-two-weeks-e8631d77b9e1?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e8631d77b9e1</guid>
            <category><![CDATA[gsoc2024]]></category>
            <category><![CDATA[circuitverse]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 13:59:51 GMT</pubDate>
            <atom:updated>2024-08-27T14:00:45.337Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*pwb-6fCFDW8RQhr-CRodxw.jpeg" /><figcaption>Week 11 and Week 12 Progress Report</figcaption></figure><h4>So What I have done in these two weeks?</h4><ol><li>Update Contest Deadline Feature on Weekly Contest.</li><li>Work on CircuitVerse Language Support</li></ol><h4>Description</h4><p>Added the feature through which Admin Can update the deadline of the Contest. You can see below Screenshots of the feature implementation</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*QZuMUbI4OWtNTDJZIw4XLA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LIzhbdHCVbl9r7-_Nc3dXA.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*93v0sc3RbP6PBOwlJX_eTg.png" /><figcaption>Update Deadline Feature on Wekkly Contest</figcaption></figure><h3>CircuitVerse Language Support</h3><p>CircuitVerse currently uses the rails-i18n gem, which is included by default with Ruby on Rails. This gem provides a straightforward and extensible framework for translating the Rails platform into multiple languages. As of now, the CircuitVerse platform can only be translated into English (default), Hindi, Bengali, and Marathi.</p><p>Given the need to add more translations and to create a method for users unfamiliar with Git and coding to contribute to CircuitVerse’s language support, we’ve integrated Crowdin. This integration will enhance CircuitVerse’s language support capabilities.</p><p>Here’s what we’ve done so far:</p><ul><li>Created a new project for CircuitVerse in Crowdin.</li><li>Configured English as the source language.</li><li>Added Hindi, Bengali, and Marathi as target languages. New languages can easily be added through the Crowdin interface with admin approval.</li></ul><p>We’ve also configured GitHub integration:</p><ul><li>Connected the CircuitVerse GitHub repository to Crowdin.</li><li>Set up file mapping for source and translated files.</li></ul><p>Additionally, we’ve created a Crowdin configuration file (crowdin.yml):</p><ul><li>Defined the source files path: /config/locales/**/en.yml</li><li>Specified the translated files path: /config/locales/**/%two_letters_code%.yml</li><li>Configured language mapping for Hindi (hi), Bengali (bn), and Marathi (mr).</li></ul><p>We’ve also implemented a GitHub Actions workflow:</p><ul><li>Created a .github/workflows/crowdin.yml file.</li><li>Set up automated synchronization between GitHub and Crowdin.</li><li>Configured actions for uploading sources, downloading translations, and creating pull requests.</li></ul><p>This task is currently a work in progress.</p><p>You can check the ongoing work here: <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5058">CircuitVerse Language Support Pull Request</a>.</p><p>Check out the below Video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F37ffdKX5IHg%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D37ffdKX5IHg&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F37ffdKX5IHg%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7c0cc14ed8425f6755ace97a06d286b2/href">https://medium.com/media/7c0cc14ed8425f6755ace97a06d286b2/href</a></iframe><p><strong>Tasks Pending:</strong></p><ul><li>Improve the GitHub Actions flow, as the current flow has some issues.</li><li>Enable this integration with CircuitVerse’s current interface.</li></ul><h4>Conclusion</h4><p>I am deeply grateful to my mentors and especially to Aboobacker for their unwavering support throughout every phase of this journey. Although the GSoC period has ended, I am committed to finishing all my tasks and continuing to contribute to CircuitVerse. I also plan to keep sharing updates and insights through future blog posts related to CircuitVerse.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e8631d77b9e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 9 and Week 10 Progress Report]]></title>
            <link>https://medium.com/@amanasrani1712/in-the-past-two-weeks-i-had-several-of-my-pull-requests-successfully-merged-and-i-cant-even-cfe8b2ae8c38?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/cfe8b2ae8c38</guid>
            <category><![CDATA[circuitverse]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Tue, 27 Aug 2024 13:23:01 GMT</pubDate>
            <atom:updated>2024-08-27T16:21:21.666Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G7cnlh6htxBtQwf8P5Vgvg.jpeg" /><figcaption>Week 9 and Week 10 Blog Report</figcaption></figure><p>In the past two weeks, I had several of my pull requests successfully merged, and I can’t even begin to describe how amazing it feels.</p><h4>So What I have done in these two weeks?</h4><ol><li>Update the SSO integration Pull Request .</li><li>Added the Documentation for how to configure Circuitverse with SAML using Okta and Keycloak</li><li>Update Email Verification Pull Request.</li><li>Weekly Contest Feature</li></ol><h4>Here is the description:</h4><p>Aboobacker and Smriti provided valuable guidance to help me improve the SSO integration pull request, and thanks to their support, I was able to successfully get the PR merged.”</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*mtYeicnacm3el3-mP2tbcg.png" /><figcaption>SSO integration PR</figcaption></figure><p>I also added detailed documentation on how to configure CircuitVerse with SAML using both Okta and Keycloak. You can Preview the Documentation <a href="https://docs.circuitverse.org/#/chapter2/5ssointegration">here</a></p><p>I successfully got my Email Verification pull request merged after implementing some changes based on the guidance provided by my mentors</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9njPyIiu_2GBPFcb-bYc1A.png" /></figure><p>One of the most interesting tasks I’ve taken on is updating the Weekly Contest feature, which was originally created by Vedant Jain two years ago. With so many changes to the master branch since then, including new coding styles, my first step was to bring the old pull request up to date. Instead of just merging the changes, I chose to go through each of Vedant’s commits, rewriting the code myself and making adjustments to fit the current codebase. It was a challenging but rewarding experience, and I learned a lot more about Ruby on Rails, though it took much longer than I expected.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/610/1*zGKjJhEKbpp9w9I1xgNg2A.png" /></figure><p>PR Reference: <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5033">https://github.com/CircuitVerse/CircuitVerse/pull/5033</a></p><h4>Upcoming Weeks Tasks</h4><ol><li>Add new features in the weekly Contest</li><li>CircuitVerse Language Support</li><li>UI improvements</li></ol><h4>Conclusion</h4><p>These last two weeks have been fantastic, with lots of learning and having great interactions with Aboobacker. He supported and guided me a lot. Although I took more time than I initially expected, I’m committed to catching up and completing all my tasks as quickly as possible.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cfe8b2ae8c38" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 7 and Week 8 Progress Report]]></title>
            <link>https://medium.com/@amanasrani1712/week-7-and-week-8-progress-report-8a26ee2603e1?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a26ee2603e1</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[circuitverse]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Sun, 28 Jul 2024 17:49:26 GMT</pubDate>
            <atom:updated>2024-07-28T17:49:26.702Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*CAWejord4zKet0QbOGik8A.jpeg" /><figcaption>Week 7 and Week 8 Blog</figcaption></figure><p>In these two weeks, I <br>1. Passed Mid Term Evaluation<br>2. Post my first blog on CircuitVerse/Blog regarding the first phase of GSoC.<br>3. Work on the Feature Logs Maintenance <br>4. Try to Implement the proposed method for Email Verification for Pre-Existing users</p><h4>Description</h4><p>I’ve been working on developing a system to maintain PR logs for CircuitVerse as it provides transparency, valuable insights into the evolution of the project, keeping logs helps in updating users about new features introduced and these logs assist contributors in understanding the codebase better.</p><p><strong>Description of Changes for logs Mainatance</strong>:</p><ul><li>Implemented a responsive carousel (1 for mobile, 2 for tablet, 3 for desktop)to display merged pull requests.</li><li>Created dynamic carousel indicators based on the number of slides(currently it fetches the last 18 merged pull requests from the CircuitVerse repository.).</li><li>Added localization support</li><li>Styled the carousel and cards for better visual appearance.</li></ul><p>Here is the demonstration video:-</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FcipcvODC2bM%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DcipcvODC2bM&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FcipcvODC2bM%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f64ff6d720943e4f5bb91aa0bccb3e08/href">https://medium.com/media/f64ff6d720943e4f5bb91aa0bccb3e08/href</a></iframe><p>In addition to my ongoing tasks, I took the time to set up the CircuitVerse Main repository natively on my local machine. This step became necessary due to persistent database configuration issues I encountered with my Docker setup.</p><p>I attempted to implement the email verification method for existing users, as mentioned in my previous blogs. However, I encountered recurring issues with edge cases, mainly because I was trying to modify the default behavior of the Devise gem. Fortunately, Aboobacker guided me through these challenges and provided invaluable help in resolving the issues.</p><p>In addition to troubleshooting the email verification, I had two meetings with Aboobacker where we reviewed all the pull requests I’ve made. During these sessions, he provided some great suggestions and valuable feedback, which have been incredibly helpful in improving my contributions.</p><p>I also started working on the Weekly Contest feature. Since this is a two-year-old pull request, my first task was to update it with the latest changes from the master branch to ensure it integrates smoothly with the current codebase.</p><h4>Upcoming Weeks Tasks</h4><ol><li>Syncing Weekly Contest with latest master branch</li><li>UI Improvements</li><li>Updating the PR as per feedbacks</li></ol><h3>Conclusion</h3><p>The past two weeks have been fantastic. I successfully completed my mid-term evaluation and published my first blog on the CircuitVerse blog, where I shared my experiences from the first phase of GSoC. The entire GSoC period has been incredible, making it the best learning experience I’ve had so far. Working with CircuitVerse has been so enjoyable that I didn’t even realize eight weeks had already passed.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a26ee2603e1" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[During these two weeks, I have worked on:]]></title>
            <link>https://medium.com/@amanasrani1712/during-these-two-weeks-i-have-worked-on-e94c0db2ba1b?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/e94c0db2ba1b</guid>
            <category><![CDATA[viewcomponents]]></category>
            <category><![CDATA[circuitverse]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Wed, 10 Jul 2024 19:45:51 GMT</pubDate>
            <atom:updated>2024-07-10T19:45:51.457Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*m7xoIEsG7gLffnR8fR5tSQ.jpeg" /><figcaption>Week 5 and Week 6 Progress Report</figcaption></figure><ol><li>Figure Out Method for Email Verification for Existing Users</li><li>Migrate to View Components</li><li>Worked on Improving UI</li></ol><h4>Figure Out Method for Email Verification for Existing Users.</h4><p>One of the most crucial question for the task Email Verification at the time of User Registration is “ What to do with Pre-Existing Users?”. Earlier I thought to treat the Pre-Existing Users as verified but the problem with this approach is that existing users who added fake emails will get verified and also we couldn’t block them suddenly that they should verify their email first to continue. So, I suggest the method in the below video:</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FO_OiSLFTlgs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DO_OiSLFTlgs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FO_OiSLFTlgs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="640" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/f44273b3ddf032789871f07e03de47a1/href">https://medium.com/media/f44273b3ddf032789871f07e03de47a1/href</a></iframe><p>However, I haven’t test this method yet because of having an unknown database error which I am trying to resolve</p><h4>Migrate to View Components</h4><p>As part of my ongoing contributions to CircuitVerse, one of my primary tasks has been to migrate several components to use ViewComponent. This migration is aimed at improving the maintainability, readability, and reusability of our codebase. By encapsulating UI logic within ViewComponents, we can ensure a cleaner separation of concerns, making the code easier to test and update in the future. Below is a summary of the PRs I have created for this migration effort:</p><ol><li><a href="https://github.com/CircuitVerse/CircuitVerse/pull/4998">feat: Migrate Home page Buttons to a View Component</a>:</li></ol><p>=&gt;This PR migrates the buttons on the home page to a dedicated ViewComponent.<br>=&gt;Included Test for button component, which is the beauty of view component that we can create test for the individual Component.<br>=&gt;Added Preview for the component</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O2ZEnTd-w_eDjv8t3ApcoA.png" /></figure><p>2. <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5002">Migrate feature card to view component</a></p><p>=&gt; Created FeatureCardComponent to handle the feature card logic. Added tests and previews with detailed annotations and parameters.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*gV3MqqxRRmd1BX_yhFr5-Q.png" /></figure><p><a href="https://github.com/CircuitVerse/CircuitVerse/pull/5003">3. migrate-featureExampleCard-to-view-component-4958</a></p><p>=&gt; The component includes logic for image preview, title, and URL generation. Also added tests and previews with notes and parameters to demonstrate usage.</p><p>4. <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5010">Migrate circuits card to view component 4958</a></p><p>=&gt; Created CircuitCardComponent to encapsulate the rendering logic for circuit cards. Handled edge cases such as non-existent or nil project names in parameters. Added comprehensive tests and previews with annotations.</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2FsSXf39rO8-s%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3DsSXf39rO8-s&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2FsSXf39rO8-s%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/a8c2aa342f9d03814b5bdb5e926e0dad/href">https://medium.com/media/a8c2aa342f9d03814b5bdb5e926e0dad/href</a></iframe><figure><img alt="" src="https://cdn-images-1.medium.com/max/923/1*rQBSb4QbOMGkrIahcMDcrQ.png" /></figure><p>5. <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5011">Migrate footer partial into a view component 4958</a></p><p>In this PR, I have added Small Small Components for better readability and maintanibility</p><ul><li>Moved the footer links rendering into FooterLinksComponent</li><li>Integrated both components into the main FooterComponent</li><li>Moved the footer rendering logic from the partial into FooterComponent</li><li>Moved the social links rendering into SocialLinksComponent</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*O5dKws3D0JJKFQ0qUfEwOQ.png" /><figcaption>Migrate Footer partial to a View Component</figcaption></figure><p>6. <a href="https://github.com/CircuitVerse/CircuitVerse/pull/5012">Migrate social card to view component 4958</a></p><p>=&gt; Moved the social card. rendering logic into a reusable component. Parameterized the component to accept link URL, image path, image alt text, heading, and description</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*o7WcrCmf_50T4JNJyesLAw.png" /><figcaption>SocialCardViewComponent</figcaption></figure><h4>Challenges Faced</h4><p>One of the challenges I faced was creating previews with parameters for the CircuitCardComponent. Handling cases where the provided project name in parameters doesn&#39;t exist or is nil required careful consideration and additional logic. And there is one more challenge which I still trying to sort out that is related to my database configurations</p><h4>Worked on Improving UI</h4><p>I worked on enhancing the user interface to make it more intuitive and visually appealing. You can view the updated Figma design <a href="https://www.figma.com/design/HPSHqBRUtA1Aisq38UADu5/CircuitVerse-Proposed-Figma?node-id=34-8194&amp;t=9SoXPDaGhuI47Sdf-1">[here]</a>. I also had a productive meeting with design expert Hiran Venugopalan, where we discussed various aspects of the design flow, the selection of libraries, and numerous other design considerations to ensure a cohesive and efficient user experience.</p><h4>Conclusion</h4><p>These two weeks are really good for me. I created around 6 PR’s which motivates me that I can make more valuable contributions. I look forward to continuing my work and making more impactful contributions to CircuitVerse.</p><p>Check out my previous blogs:</p><p>=&gt; <a href="https://medium.com/@amanasrani1712/community-bonding-period-at-circuitverse-google-summer-of-code-2024-39897faba846">Community Bonding period at CircuitVerse</a></p><p>=&gt; <a href="https://medium.com/@amanasrani1712/gsoc-24-circuitverse-week-1-report-029d0cc32487">Week 1 Progress Report</a></p><p>=&gt; <a href="https://medium.com/@amanasrani1712/gsoc-2024-circuitverse-week-2-report-saml-based-sso-integration-54365268bc0c">Week 2 Progress Report</a></p><p>=&gt; <a href="https://medium.com/@amanasrani1712/its-been-almost-a-month-in-gsoc-and-i-ve-learned-a-lot-while-facing-many-challenges-50af503abf1f">Week 3 and Week 4 Progress Report</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=e94c0db2ba1b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Week 3 and Week 4 Progress Report]]></title>
            <link>https://medium.com/@amanasrani1712/its-been-almost-a-month-in-gsoc-and-i-ve-learned-a-lot-while-facing-many-challenges-50af503abf1f?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/50af503abf1f</guid>
            <category><![CDATA[saml-based-sso]]></category>
            <category><![CDATA[email-verification]]></category>
            <category><![CDATA[aml]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[circuitverse]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Tue, 25 Jun 2024 20:44:01 GMT</pubDate>
            <atom:updated>2024-08-27T14:04:26.217Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dDXyItjubXEQbOJKVniLKA.jpeg" /></figure><p>It’s been almost a month in GSoC, and I’ve learned a lot while facing many challenges. In these four weeks, there have been many ups and downs. There was even a time when I got stuck on the first task and thought I wouldn’t be able to complete the project on time.</p><p>I want to extend my heartfelt thanks to Tanmoy Sarkar and Smriti Garg for their invaluable support. During a lengthy meeting with Tanmoy Bhaiya, I gained a lot of insights and learned several effective methods to debug the code. Their guidance has been incredibly helpful and has made a significant difference in my progress by removing a big blocker.</p><h3><strong>About My Contributions:</strong></h3><h4>1. SAML based SSO</h4><p>I had been working on this SAML-based SSO for the last two weeks, as mentioned in my previous blogs. I successfully received the SAML response from the Identity Provider (IdP) but encountered errors during login with the Service Provider. Specifically, the error was in HERE!</p><p>Upon reading the response from the creator of the devise_saml_authenticable gem, I found the following reply:</p><blockquote>(i.e. If you’re using SSO, your application should not need any passwords stored. The IdP handles all of that for you. So if you only use SSO, you can remove the password column from your table entirely. If you’re still allowing people to log in with both database and SAML authentication, there’s a bit more to it, I’d start here: <a href="https://github.com/apokalipto/devise_saml_authenticatable/wiki/Supporting-multiple-authentication-strategies">https://github.com/apokalipto/devise_saml_authenticatable/wiki/Supporting-multiple-authentication-strategies</a>. You’ll have to disable the validation you’re running into for only those users.)</blockquote><p>Realizing this, I felt like I needed to remove the validations from the user model, which is not possible. Consequently, this issue seems unresolvable within the current constraints.</p><p>Finally, during a meeting with Tanmoy Bhaiya, we discovered that the create method in the saml_sessions_controller was being overridden by the create method from the devise_saml_authenticable gem</p><p>So we create a hook saml_update_resource_hook in config/initializers/devise.rb (this resolves overriding issue of create method in saml_session_controller by devise_authenticable_gem )</p><pre>Devise.saml_update_resource_hook = Proc.new do |user, saml_response, auth_value|<br><br>  saml_response.attributes.resource_keys.each do |key|<br>    user.send &quot;#{key}=&quot;, saml_response.attribute_value_by_resource_key(key)<br>  end<br><br>  if Devise.saml_use_subject<br>    user.send &quot;#{Devise.saml_default_user_key}=&quot;, auth_value<br>  end<br><br>  puts &quot;User: #{user.inspect}&quot;<br>  if user.id.nil?<br>    user.name = user.email<br>    user.password = Devise.friendly_token[0, 20]<br>  end<br>  user.save!<br>end</pre><p>Checkout the below Video For better Understanding</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2F0L_-8KO-WXs%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3D0L_-8KO-WXs&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2F0L_-8KO-WXs%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/573b8622bb8a9462e84b7b97e61f0d57/href">https://medium.com/media/573b8622bb8a9462e84b7b97e61f0d57/href</a></iframe><p>UnderReview:- <a href="https://github.com/CircuitVerse/CircuitVerse/pull/4989">Saml Based SSO PR</a></p><h4>2. Email Verification at the time of User Registration</h4><p>Currently, CircuitVerse doesn’t verify users’ emails during registration, so we need to implement email verification at that time. Initially, I used Sendrik as the email service, but then I get to know that CircuitVerse already has access to AWS. So, I switched to using AWS SES (Simple Email Service) to send confirmation emails.</p><p>How I Implemented? You can see the Flow and the PULL REQUEST below</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*EndMRJwpRTKZ5tfEDYfq7Q.png" /></figure><p>Pull Request For the Email Verification during user registration: <a href="https://github.com/CircuitVerse/CircuitVerse/pull/4993">Link</a></p><p>Checkout the below Video For better Understanding</p><iframe src="https://cdn.embedly.com/widgets/media.html?src=https%3A%2F%2Fwww.youtube.com%2Fembed%2Fu19fALv5cTI%3Ffeature%3Doembed&amp;display_name=YouTube&amp;url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Du19fALv5cTI&amp;image=https%3A%2F%2Fi.ytimg.com%2Fvi%2Fu19fALv5cTI%2Fhqdefault.jpg&amp;key=a19fcc184b9711e1b4764040d3dc5c07&amp;type=text%2Fhtml&amp;schema=youtube" width="854" height="480" frameborder="0" scrolling="no"><a href="https://medium.com/media/7acb7d0d20fe5d5fd31f6c899f97bc13/href">https://medium.com/media/7acb7d0d20fe5d5fd31f6c899f97bc13/href</a></iframe><h4>3. Resend Email Verification Functionality</h4><p>There should be a button to resend emails in case there is a failure in sending the initial email. This failure could be due to issues with AWS or any other reason. To address this, I have added a button that allows users to resend the verification email. Fortunately, all the logic for handling this is already managed by the Devise gem, which is very convenient. This ensures that users can receive their confirmation emails without any hassle, even if there are technical difficulties. Below are the screenshots showing this new feature.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*LW426L5PJlrutrJ-nLUQJg.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4oJaaAMgMEae2mHHDfEM3w.png" /></figure><p>Here is the <a href="https://github.com/CircuitVerse/CircuitVerse/pull/4994">PR link</a> for ResendEmail</p><h4>Conclusion</h4><p>The past two weeks have been fantastic. I learned a lot of new things, including PostgreSQL. While working on migrations, I encountered some errors that introduced me to Redis Server and Sidekiq, a background job processing library. These challenges made me happy and motivated to learn even more. I also made my first three pull requests during this time.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=50af503abf1f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC 2024 CircuitVerse | Week 2 Report | SAML Based SSO Integration]]></title>
            <link>https://medium.com/@amanasrani1712/gsoc-2024-circuitverse-week-2-report-saml-based-sso-integration-54365268bc0c?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/54365268bc0c</guid>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[circuitverse]]></category>
            <category><![CDATA[saml-based-sso]]></category>
            <category><![CDATA[sso]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Sat, 15 Jun 2024 20:12:07 GMT</pubDate>
            <atom:updated>2024-06-15T20:12:07.708Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*kNC3SvrAKWXTfmnioPytTg.png" /></figure><p>Check out my week 1 progress: <a href="https://medium.com/@amanasrani1712/gsoc-24-circuitverse-week-1-report-029d0cc32487">here</a></p><h3>Week 1 (3 June — 9June)</h3><p>This week I attempted SAML based SSO integration by using gem <a href="https://github.com/apokalipto/devise_saml_authenticatable">devise_saml_authenticatable</a>(already exits) and <a href="https://github.com/onelogin/ruby-saml">ruby-saml</a>, gem (newly added)</p><p>SAML (Security Assertion Markup Language) is a markup language designed for exchanging authentication information between the user, the identity provider, and the service provider.</p><p>Nevertheless, attribute-map.yml, devise settings, and the controller have already been put up by my mentor Vedant Jain (you may checkout the PR).I created a Testing Account at OKTA to get credentials (<a href="https://www.contentstack.com/docs/developers/single-sign-on/set-up-sso-with-okta">Reference </a>) . I was able to write the methods in saml_session_controller.rb and they work as expected.</p><pre><br>class Users::SamlSessionsController &lt; Devise::SamlSessionsController<br>    skip_before_action :verify_authenticity_token, raise: false<br>    after_action :store_winning_strategy, only: :create<br>  <br>    def new<br>      request = OneLogin::RubySaml::Authrequest.new<br>      action = request.create(saml_settings)<br>      redirect_to action<br>    end<br>  <br>    def metadata<br>      meta = OneLogin::RubySaml::Metadata.new<br>      render xml: meta.generate(saml_settings)<br>    end<br>  <br>    def create<br>      response = OneLogin::RubySaml::Response.new(params[:SAMLResponse], settings: saml_settings)<br>    <br>      if response.is_valid?<br>        @user = User.find_or_create_by(email: response.nameid) do |user|<br>          user.password = Devise.friendly_token[0, 20] # Set a default password<br>        end<br>        sign_in @user<br>        # sign_in_and_redirect @user, event: :authentication<br>      else<br>        redirect_to new_user_session_path, alert: &#39;Invalid SAML response&#39;<br>      end<br>    end<br>  <br>    private<br>    def saml_settings<br>        settings = OneLogin::RubySaml::Settings.new<br>      <br>        settings.assertion_consumer_service_url     = Devise.saml_config.assertion_consumer_service_url<br>        settings.assertion_consumer_service_binding = Devise.saml_config.assertion_consumer_service_binding<br>        settings.name_identifier_format             = Devise.saml_config.name_identifier_format<br>        settings.issuer                             = Devise.saml_config.issuer<br>        settings.authn_context                      = Devise.saml_config.authn_context<br>        settings.idp_slo_target_url                 = Devise.saml_config.idp_slo_target_url<br>        settings.idp_sso_target_url                 = Devise.saml_config.idp_sso_target_url<br>        settings.idp_cert_fingerprint               = Devise.saml_config.idp_cert_fingerprint<br>        settings.idp_cert_fingerprint_algorithm     = Devise.saml_config.idp_cert_fingerprint_algorithm<br>      <br>        settings<br>      end<br>      def store_winning_strategy<br>        warden.session(:user)[:strategy] = warden.winning_strategies[:user].class.name.demodulize.underscore.to_sym<br>      end<br>  end</pre><p>I initially encountered a number of problems, but with the assistance of my fellow contributor, Vaishnav Deore, I was able to determine that these were caused by versioning problems. I was able to redirect to the OKTA login page and obtain the SAML answer after addressing these. But then I ran into a problem while trying to sign the user, so I had to take off the name, email, and password validations.</p><p><a href="https://github.com/CircuitVerse/CircuitVerse/pull/4975">Here</a> is the Draft Pull Request</p><h3>Conclusion</h3><p>This week has been a lot about fixing errors. I did manage to get some success with implementing SAML-based SSO, but I didn’t make a lot of visible progress. Still, I learned a lot along the way. It did feel like I spent most of my time sorting out errors, but each one taught me something new.</p><p>Stay tuned for upcoming blogs !</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=54365268bc0c" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[GSoC’ 24 CircuitVerse | Week 1 Report]]></title>
            <link>https://medium.com/@amanasrani1712/gsoc-24-circuitverse-week-1-report-029d0cc32487?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/029d0cc32487</guid>
            <category><![CDATA[ruby-on-rails]]></category>
            <category><![CDATA[sso]]></category>
            <category><![CDATA[gsoc]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Sat, 15 Jun 2024 14:42:29 GMT</pubDate>
            <atom:updated>2024-06-15T14:42:29.245Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Djy4EmnL_0JE2glpb1xK4g.png" /></figure><p>Google Summer of Code 2024 Coding period start on 27th May.<br>You can see my Community Bonding Period Experience Blog: <a href="https://medium.com/@amanasrani1712/community-bonding-period-at-circuitverse-google-summer-of-code-2024-39897faba846">here</a></p><h3>Week 1 (27 May — 2 June)</h3><p>I am really excited to start my contributions to CircuitVerse. Since the proposed UI hasn’t been reviewed yet, I consulted with Org admin Aboobacker MK and started my task: ‘Improve SSO Integration’.”</p><p>Single sign-on (SSO) is an identification method that enables users to log in to multiple applications and websites with one set of credentials. SSO streamlines the authentication process for users.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Gnfv3sc4ddtNa8Y-lypxVg.png" /></figure><p>There are a lot of standards and protocols that provide SSO and some of the famous ones are</p><ul><li><strong>Security Assertion Markup Language (SAML)</strong></li><li><strong>Open Authorization (OAuth)</strong></li><li><strong>Open ID Connect (OIDC)</strong></li></ul><p>First, I started SSO integration from the official OKTa Documentation (<a href="https://developer.okta.com/blog/2020/09/25/easy-auth-ruby-on-rails-6-login">Here</a>), which uses the below gems,</p><ul><li><a href="https://github.com/andrewvanbeek-okta/omniauth-oktaoauth">omniauth-oktaoauth</a> — our OAuth strategy gem for Okta</li><li><a href="https://github.com/rails/activerecord-session_store">activerecord-session_store</a> to handle our session</li><li><a href="https://github.com/laserlemon/figaro">figaro</a> for managing our application YAML files to hold our environment variables and finally</li><li><a href="https://github.com/cookpad/omniauth-rails_csrf_protection">omniauth-rails_csrf_protection</a> to protect us from that CRSF vulnerability mentioned prior</li></ul><p>However, I was receiving an unexplained problem, which I tried to fix but couldn’t. After speaking with Aboobacker, I was therefore recommended not to use a specific Identity Provider (IDP) gem. It makes sense that I was instructed to utilize gems that are unrelated to any particular IDP instead.</p><p>In addition, I’m having trouble obtaining my Microsoft Azure credentials. I thus began SAML-based SSO for OKTA, but all of the available resources relied on Rails 5 and lower .</p><h3><strong>Conclusion</strong></h3><p>Despite not being able to deliver any PRs, I gained a lot of knowledge this week regarding SSO integration. I’ve decided to post the most recent materials for Ruby on Rails SSO integration with Okta. Keep an eye out for my upcoming blogs, where I promise to share some incredible information.</p><p>Thank you for reading! 😇</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=029d0cc32487" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Community Bonding Period at CircuitVerse — Google Summer of Code 2024]]></title>
            <link>https://medium.com/@amanasrani1712/community-bonding-period-at-circuitverse-google-summer-of-code-2024-39897faba846?source=rss-1f7f369a963c------2</link>
            <guid isPermaLink="false">https://medium.com/p/39897faba846</guid>
            <category><![CDATA[circuitverse]]></category>
            <category><![CDATA[gsoc2024]]></category>
            <category><![CDATA[open-source]]></category>
            <category><![CDATA[community-bonding-period]]></category>
            <dc:creator><![CDATA[Aman Asrani]]></dc:creator>
            <pubDate>Fri, 31 May 2024 15:24:32 GMT</pubDate>
            <atom:updated>2024-05-31T15:24:32.784Z</atom:updated>
            <content:encoded><![CDATA[<h3>Community Bonding Period at CircuitVerse — Google Summer of Code 2024</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*9n2VlZo99WxKr_Nq01dv5w.png" /></figure><p>Hello everyone!</p><p>I’m Aman Asrani, an undergraduate student at NIT Hamirpur. As the Community Bonding Period of GSoC wraps up, I’m excited to share my journey and experiences from this enriching phase, which spanned from May 1st to 26th.</p><p>During First week, We have an introductory meet with Everyone, in which<br>each participant introduced their projects and their skills. Our Mentors tell their Journey, which was really inspiring for all of us. In this meet, We get to know about CircuitVerse more and currently around millions of users have uploaded Circuits</p><h4>Meet with Fellow Contributors</h4><p>We had an insightful meeting with my fellow contributors to gain a better understanding of the codebase. <a href="https://github.com/niladrix719">Niladri Adhikary</a>,provided valuable insights about the codebase, enhancing our comprehension. We also engaged in discussions about open-source practices and shared experiences, which enriched our understanding and collaboration.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*_wggjUpVJPTCyCgZ5g1fbA.png" /></figure><h4><strong>Weekly Meetings</strong></h4><p>We have weekly meetings every Friday, discussing our doubts and suggestions regarding the improvement of CircuitVerse. We get to know about new things in every meeting, which is really exciting and keeps us motivated to learn more and contribute our best.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OG7q18iQNjUP8QOcPOmLSg.png" /></figure><p>Other than that, I improved my expertise in Ruby on Rails. Being a beginner, I read the Odin Project documentation for Ruby on Rails, watched YouTube lectures, and created a project in Ruby. I asked queries regarding my Project (<a href="https://github.com/CircuitVerse/CircuitVerse/wiki/GSoC%2724-Project-List#project-1---enhancing-circuitverse-user-experience">Project 1 — Enhancing CircuitVerse User Experience</a>) and created a dashboard for my Project on GitHub.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*OSmACLDG8V7eFTe_eAVjyw.png" /></figure><h3>Conclusion</h3><p>I have learned a lot about CircuitVerse Codebase and Ruby on Rails. I am really excited to contribute and make a meaning impact. Stay tuned for upcoming weekly blogs where I’ll delve deeper into the project. Let’s Learn together! .Thank you for reading thus far!</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=39897faba846" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>