---
title: "Discussion on \"CSRF: Understanding the Attack From First Principles\" | Hashnode"
description: "Discussion on \"CSRF: Understanding the Attack From First Principles\". While building an OIDC Provider, I came across something called the state parameter in the authorization flow.\nAt first, I thought:\n\nWhy do we need another random value? We already have an authorizati"
url: "https://hashnode.com/posts/csrf-understanding-the-attack-from-first-principles/6aa44fced305546028a8351c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [CSRF: Understanding the Attack From First Principles](https://aijorganssimpleexplanationbybamrit.hashnode.dev/csrf-understanding-the-attack-from-first-principles?utm_source=hashnode&utm_medium=feed)

While building an OIDC Provider, I came across something called the state parameter in the authorization flow. At first, I thought: Why do we need another random value? We already have an authorizati

Sep 11 · 10 min read · aijorganssimpleexplanationbybamrit.hashnode.dev  
Read the article

## Written by

[amrit rajput](https://hashnode.com/@amritxrajput)

@amritxrajput · Lucknow

  
[View profile](https://hashnode.com/@amritxrajput)

Passionate About Software Engineering, Systems, and Problem Solving

Learning software engineering with an emphasis on correctness, clarity, and long-term thinking.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
