Chapter 18. The Security Component

Table of Contents

18.1. Introduction
18.2. Protecting Controller Actions
18.3. Handling Invalid Requests
18.4. Advanced Request Authentication

18.1. Introduction

The Security component is used to secure your controller actions against malicious or errant requests. It allows you to set up the conditions under which an action can be requested, and optionally specify how to deal with requests that don't meet those requirements. Again, before using the Security component, you must make sure that 'Security' is listed in your controllers' $components array.