Wiki

Articles tagged with "security", sorted by date (updated)X
Displaying 1-10 of 21 result(s).

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

Updated 5 days ago by Arno SHow-tos0 comments – viewed 9,903 times – ( +4 ) – version 1.1
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes.

default csrf security and ajax post in one controller

Updated 6 days ago by CeBeTutorials1 comment – viewed 1,855 times – version 1.1
Hello Yii friends

Extension Development (beginner)

Updated 6 days ago by CeBeTutorials2 comments – viewed 10,187 times – ( +33 ) – version 1.1
To extend the functionality of you web application relative to your requirements you are supposed to use existing yii core libraries or use external libraries. There are some steps to ensure security, uniqueness, modularity, performance and to avoid rework in future.

Configuring controller access rules to default-deny

Updated 3 months ago by nsandenHow-tos3 comments – viewed 50,131 times – ( +11 ) – version 1.1
Starting with the blog tutorial, Yii developers are familiar with the notion of access rules defined in the controller, where the actions are allowed or denied depending on the user's name or role.

How to write secure Yii applications

Updated 5 months ago by Fran├žois GannazHow-tos19 comments – viewed 124,299 times – ( +97 ) – version 1.1
warning: While this security guide tries to be quite complete, is not exhaustive. If security matters for you, you ought to check several other references.

Secure password hash storage and a Yii helper extension

Updated 6 months ago by fsbTutorials5 comments – viewed 25,502 times – ( +15 ) – version 1.1
Obsolete

Use crypt() for password storage

Updated 6 months ago by fsbTutorials12 comments – viewed 45,375 times – ( +24 ) – version 1.1
Update: This wiki has been rewritten to be in line with Yii 1.1.14. Since many of the detailed complexities are now handled by Yii, the article focuses on how the crypt() built-in function works and why it's important to use it correctly.

Getting to Understand Hierarchical RBAC Scheme

Updated 7 months ago by rAWTAZTutorials17 comments – viewed 66,032 times – ( +57 ) – version 1.1
Authentication and Authorization is a good tutorial. Among other topics, it describes basic aspects of Yii's RBAC implementation. But however hard I read the tutorial, I couldn't understand how exactly the hierarchy works. I found how to define authorization hierarchy, how business rules are evaluated, how to configure authManager, but almost nothing about how I should build my hierarchy, in what sequence its nodes are checked, when the checking process stops and what would be the checking result.

Simple authorization system

Updated 11 months ago by GustavoHow-tos1 comment – viewed 22,047 times – ( +16 ) – version 1.1
How to create a simple (non-RBAC) authorization system

Secure password hashing with bCrypt

Updated about a year ago by Ivo PereiraHow-tos3 comments – viewed 16,264 times – ( +7 ) – version 1.1
In this article I will show you how to implement a secure password hashing mechanism in your Yii projects using a bCrypt class.