2017 © Pedro Peláez
 

plugin eve-plugin-csrf

CSRF Plugin for the Eve Framework

image

eve-php/eve-plugin-csrf

CSRF Plugin for the Eve Framework

  • Tuesday, November 10, 2015
  • by cblanquera
  • Repository
  • 3 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

logo Eve CSRF Plugin

CSRF checker for the Eve Framework

Build Status Latest Stable Version Total Downloads Latest Unstable Version License

====, (*1)

, (*2)

Install

composer install eve-php/eve-plugin-csrf, (*3)

====, (*4)

, (*5)

Usage

  1. Add this in public/index.php towards the top of the bootstrap chain.
//CSRF
->add(Eve\Plugin\Csrf\Setup::i()->import('1234567890'))

'1234567890' is the escape key you use when writing tests for pages using this plugin., (*6)

  1. For each route, determine whether a CSRF ID should be generated and/or checked as in
'/product/create' => array(
    'method' => 'ALL',
    'make_csrf' => true,
    'check_csrf' => true,
    'class' => '\\Eve\\App\\Front\\Action\\Product\\Create'
),
  1. In each form template add <input type="hidden" name="csrf" value="{{item.csrf}}" /> before the form tag., (*7)

  2. Done ;), (*8)

The Versions

10/11 2015

dev-master

9999999-dev http://eve.openovate.com

CSRF Plugin for the Eve Framework

  Sources   Download

MIT

The Requires

 

by Christian Blanquera

plugin eve