<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Max</title>
    <description>The latest articles on DEV Community by Max (@max242411).</description>
    <link>https://dev.to/max242411</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F3710947%2F8431246d-a079-43d8-88f5-395211de630d.png</url>
      <title>DEV Community: Max</title>
      <link>https://dev.to/max242411</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/max242411"/>
    <language>en</language>
    <item>
      <title>Take a look at UI tests without sleepers.</title>
      <dc:creator>Max</dc:creator>
      <pubDate>Sat, 14 Mar 2026 09:05:14 +0000</pubDate>
      <link>https://dev.to/max242411/take-a-look-at-ui-tests-without-sleepers-36db</link>
      <guid>https://dev.to/max242411/take-a-look-at-ui-tests-without-sleepers-36db</guid>
      <description></description>
      <category>testing</category>
      <category>playwright</category>
      <category>selenium</category>
      <category>cypress</category>
    </item>
    <item>
      <title>Solved: The Headache of Testing OAuth Integration (Free &amp; Open Source Mock Server)</title>
      <dc:creator>Max</dc:creator>
      <pubDate>Wed, 14 Jan 2026 13:03:03 +0000</pubDate>
      <link>https://dev.to/max242411/solved-the-headache-of-testing-oauth-integration-free-open-source-mock-server-3gd9</link>
      <guid>https://dev.to/max242411/solved-the-headache-of-testing-oauth-integration-free-open-source-mock-server-3gd9</guid>
      <description>&lt;p&gt;If you've ever tried to write End-to-End (E2E) tests for an application that relies on "Login with Google/GitHub/Microsoft," you know the pain.&lt;/p&gt;

&lt;p&gt;You hit the OAuth button, and suddenly your test runner is fighting with:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Two-Factor Authentication (2FA) prompts.&lt;/li&gt;
&lt;li&gt;Captcha challenges.&lt;/li&gt;
&lt;li&gt;Rate limits from the provider.&lt;/li&gt;
&lt;li&gt;"Suspicious login attempt" emails flooding your inbox.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I recently ran into this exact challenge for a project of mine. I went down the rabbit hole searching for a mock server that I could use during E2E testing to verify that my OAuth flow works correctly.&lt;/p&gt;

&lt;h3&gt;
  
  
  The Problem
&lt;/h3&gt;

&lt;p&gt;Most solutions I found were either:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt; Paid services (and often expensive for just a simple test).&lt;/li&gt;
&lt;li&gt; Complex local setups that required heavy configuration or Docker containers just to mock a single token exchange.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;I didn't find anything simple. So, I built it.&lt;/p&gt;

&lt;h3&gt;
  
  
  Introducing: Open Source OAuth Mock Server
&lt;/h3&gt;

&lt;p&gt;I created a hosted, open-source OAuth mock server that is completely &lt;strong&gt;free&lt;/strong&gt; to use. It is designed to be a drop-in replacement for your real OAuth providers during testing.&lt;/p&gt;

&lt;p&gt;Live Server:&lt;a href="https://oauth.kogiqa.com/" rel="noopener noreferrer"&gt;https://oauth.kogiqa.com/&lt;/a&gt;&lt;br&gt;
GitHub Repo: &lt;a href="https://github.com/atagon-GmbH/oAuth-mock" rel="noopener noreferrer"&gt;oAuth-mock&lt;/a&gt;&lt;/p&gt;

&lt;h3&gt;
  
  
  How it works
&lt;/h3&gt;

&lt;p&gt;The beauty of this tool is its simplicity. You don't need to change your code logic. You literally just swap the URL.&lt;/p&gt;

&lt;p&gt;If your production config looks like this:&lt;br&gt;
&lt;code&gt;AUTH_URL=https://accounts.google.com/o/oauth2/v2/auth&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;You just change your test environment config to:&lt;br&gt;
&lt;code&gt;AUTH_URL=https://oauth.kogiqa.com/&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;That's it.&lt;/p&gt;

&lt;p&gt;The server simulates a real OAuth provider. It acts as if the user successfully input their credentials and redirects back to your application with the correct authorization code or token structure.&lt;/p&gt;

&lt;h3&gt;
  
  
  Feature: Custom User Data via URL
&lt;/h3&gt;

&lt;p&gt;One of the most useful features is the ability to customize the "mock" user profile on the fly without changing any server config. &lt;/p&gt;

&lt;p&gt;If your test needs to verify that the UI displays the correct username or email, you can simply pass them as GET parameters in the URL:&lt;/p&gt;

&lt;p&gt;&lt;code&gt;https://oauth.kogiqa.com/?name=QA_User&amp;amp;email=qa@test.com&lt;/code&gt;&lt;/p&gt;

&lt;p&gt;When the mock server redirects back to your app, the resulting token/profile data will contain &lt;strong&gt;QA_User&lt;/strong&gt; and &lt;strong&gt;&lt;a href="mailto:qa@test.com"&gt;qa@test.com&lt;/a&gt;&lt;/strong&gt; instead of generic defaults. This is perfect for testing different user scenarios dynamically.&lt;/p&gt;

&lt;h3&gt;
  
  
  Supported Providers
&lt;/h3&gt;

&lt;p&gt;Out of the box, it supports simulating:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Google&lt;/li&gt;
&lt;li&gt;Microsoft&lt;/li&gt;
&lt;li&gt;GitHub&lt;/li&gt;
&lt;li&gt;Facebook&lt;/li&gt;
&lt;li&gt;Discord&lt;/li&gt;
&lt;li&gt;Slack&lt;/li&gt;
&lt;li&gt;Apple / Generic&lt;/li&gt;
&lt;/ul&gt;

&lt;h3&gt;
  
  
  Contribute!
&lt;/h3&gt;

&lt;p&gt;This project is open source. If you need a specific OAuth provider that isn't listed, feel free to open a PR or an issue on the repository! I am actively maintaining it and will redeploy the server with new providers as they are added.&lt;/p&gt;

&lt;p&gt;Check it out, star the repo, and let me know what you think!&lt;/p&gt;

&lt;p&gt;&lt;a href="https://github.com/atagon-GmbH/oAuth-mock" rel="noopener noreferrer"&gt;GitHub Repo&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Happy Testing!!!&lt;/p&gt;

</description>
      <category>oauth</category>
      <category>authjs</category>
      <category>testing</category>
      <category>playwright</category>
    </item>
  </channel>
</rss>
