---
title: "Afshin Amini (@mnafshin) | Hashnode"
description: "<3 programming. Read the latest articles by Afshin Amini on Hashnode."
url: "https://hashnode.com/@mnafshin"
---

@mnafshin

# Afshin Amini

@mnafshin · Joined January 2026

<3 programming

### [OAuth with SPAs and a Shared BFF](https://springuniverse.hashnode.dev/oauth-with-spas-and-a-shared-bff?utm_source=hashnode&utm_medium=feed)

GitHub: github.com/mnafshin/oauth What we are building A backend-for-frontend (BFF) that handles OAuth for two single-page apps: React (Vite, port 5173) Angular (port 4200) Both SPAs share one Sp

7 min read · [springuniverse.hashnode.dev](https://springuniverse.hashnode.dev/oauth-with-spas-and-a-shared-bff?utm_source=hashnode&utm_medium=feed)

[Jul 5](https://hashnode.com/posts/oauth-with-spas-and-a-shared-bff/6a4ab8235cc4491fa07a7ae7)

### [Keycloak Integration End to End](https://springuniverse.hashnode.dev/keycloak-integration-end-to-end?utm_source=hashnode&utm_medium=feed)

GitHub: github.com/mnafshin/oauth Goal Stand up Keycloak locally, create realm clients, and connect the demos from posts 6–9: Thymeleaf Spring Boot (orders-web on port 8080) Plain Java (orders-web

8 min read · [springuniverse.hashnode.dev](https://springuniverse.hashnode.dev/keycloak-integration-end-to-end?utm_source=hashnode&utm_medium=feed)

[Jul 5](https://hashnode.com/posts/keycloak-integration-end-to-end/6a4ab6d1fdf37c23e370baaa)

### [OAuth in Plain Java](https://springuniverse.hashnode.dev/oauth-in-plain-java?utm_source=hashnode&utm_medium=feed)

GitHub: github.com/mnafshin/oauth Why this post exists Spring Security hides PKCE, state, discovery, and token exchange behind auto-configuration. That is good for productivity — bad for interviews a

5 min read · [springuniverse.hashnode.dev](https://springuniverse.hashnode.dev/oauth-in-plain-java?utm_source=hashnode&utm_medium=feed)

[Jul 5](https://hashnode.com/posts/oauth-in-plain-java/6a4ab581d6722807879965c7)

### [OAuth with Spring Security](https://springuniverse.hashnode.dev/oauth-with-spring-security?utm_source=hashnode&utm_medium=feed)

GitHub: github.com/mnafshin/oauth What we are building A minimal server-rendered Spring Boot web app that: Redirects unauthenticated users to Keycloak Completes Authorization Code + PKCE (Spring ha

7 min read · [springuniverse.hashnode.dev](https://springuniverse.hashnode.dev/oauth-with-spring-security?utm_source=hashnode&utm_medium=feed)

[Jul 5](https://hashnode.com/posts/oauth-with-spring-security/6a4ab4e0caa32f4338f8ac65)

### [OAuth Mistakes in Production](https://springuniverse.hashnode.dev/oauth-mistakes-in-production?utm_source=hashnode&utm_medium=feed)

This post is a checklist disguised as war stories Every item below appears in real audits. OAuth did not fail — configuration and application code did. 1. Redirect URI laxity Mistake: Register https:

4 min read · [springuniverse.hashnode.dev](https://springuniverse.hashnode.dev/oauth-mistakes-in-production?utm_source=hashnode&utm_medium=feed)

[Jul 4](https://hashnode.com/posts/oauth-mistakes-in-production/6a49098d677d1e12c61d019b)
