Articles tagged with "csrf"X
Displaying 1-6 of 6 result(s).

[Guide] How to actually separate Frontend (User) and Backend (Admin) on Yii2 Advanced

Created 6 months ago by Wade ShulerHow-tos1 comment – viewed 17,295 times – ( +12 / -1 ) – version 2.0
I am writing this guide because I struggled to find a resource that included ALL of the necessary steps to completely separate the frontend from the backend. After reading guides like Configuring different sessions for backend and frontend in yii-advanced-app and yii2 configuring different sessions for backend and frontend in yii advanced application template, there are still steps missing. It is funny how the 2nd one says it is an extension of the first one's article. So I guess, my wiki guide here is yet a 3rd and more complete extension of both of them. I also found a few StackOverflow questions and blog posts regarding this topic. None of them fully worked, and must be missing some magic sauce!

default csrf security and ajax post in one controller

Created about a year ago by jasonbanTutorials3 comments – viewed 9,082 times – ( +1 / -3 ) – version 1.1
Hello Yii friends

Checking for "expired" sessions/logins on the client side

Created 2 years ago by le_topHow-tos0 comments – viewed 18,598 times – ( +6 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

How to validate CSRF token with session

Created 4 years ago by yangmlsHow-tos1 comment – viewed 43,458 times – ( +22 ) – version 1.1
First of all, You must change component config to enable the default Yii CSRF validation.
tags: CSRF, session

[PT-BR] Proteção Contra Logout CSRF

Created 4 years ago by Rodrigo CoelhoTutorials0 comments – viewed 7,336 times – ( +2 / -1 ) – version 1.1
CSRF é o acrônimo para Cross-site request forgery. CSRF é um ataque que forca o usuário a executar ações não desejadas numa aplicação Web na qual ele está autenticado.

Logout CSRF Protection

Created 4 years ago by Rodrigo CoelhoTutorials1 comment – viewed 16,092 times – ( +10 ) – version 1.1
CSRF is the acronymn for Cross-site request forgery. It is an attack which forces an end user to execute unwanted actions on a web application in which he/she is currently authenticated.