This repository was archived by the owner on Mar 12, 2024. It is now read-only.
This repository was archived by the owner on Mar 12, 2024. It is now read-only.
What’s the purpose of static State variable #29
Open
Description
I was going through custom login samples. We are using static state while implementing authorization-code flow, what’s the point of static state as it’s leaking into frontend?
If I change it to random string then how can I compare it across different requests (i.e. authorize and token call) as there is nothing common in both these requests and are stateless?
One approach I could think of is adding state into a cache and while getting the token check state is present in the cache.
However, it doesn't compare the state specifically but reduces the risk.
Metadata
Metadata
Assignees
Labels
No labels