Wiki

Articles tagged with "authentication", sorted by date (updated)X
Displaying 11-20 of 22 result(s).

Integrating HybridAuth directly into Yii without an extension

Updated about a year ago by biz devHow-tos7 comments – viewed 23,845 times – ( +14 ) – version 1.1
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension.

Yet another implementation of CPhpAuthManager.

Updated about a year ago by seenivasanHow-tos3 comments – viewed 8,125 times – ( +8 / -1 ) – version 1.1
In this wiki, I try to implement a simple authorization schema without putting much logic inside a file or into database table. We are constructing authorization hierarchy inside the controller. We are getting roles for the current user from database table and assigning only roles to user that are declared in the particular controller. We have brought down the work of loading of auth data at main application level to controller level. This way we have pulverised auth data for entire site into smaller units. Finally we are going to look at couple of examples.

Kickstart development with Yii-App

Updated about a year ago by Chris83How-tos24 comments – viewed 22,648 times – ( +21 / -1 ) – version 1.1
I recently created a project called Yii-App on GitHub to kickstart my development of smaller Yii applications. The main goal of the project is to provide a ready-to-use application template that includes my bootstrap extension and many other useful extensions. After reading this article you will be able to use this project as a starting point for all of your Yii projects.

How to setup RBAC with a php file

Updated 2 years ago by StagelineHow-tos17 comments – viewed 52,771 times – ( +26 / -4 ) – version 1.1
In this cookbook I will attempt to explain how to use the lightweight version of Role-Based Access Control using a php file. This version does not use database but a php file and is controlled by CPhpAuthManager class.

Simple RBAC

Updated 2 years ago by StagelineTutorials16 comments – viewed 64,346 times – ( +45 / -3 ) – version 1.1
If you need simple Role based access control without the long RBAC process then this article is just for you. Lets jump to the point.

Adding login form to each page

Updated 2 years ago by Yang HeTutorials5 comments – viewed 31,531 times – ( +3 / -2 ) – version 1.1
After adding proper form to the main layout, like:

How to add more information to Yii::app()->user

Updated 2 years ago by Yang HeTutorials1 comment – viewed 117,400 times – ( +26 ) – version 1.1
By default, the expression Yii::app()->user returns a CWebUser application component which represents the information that are closely related with the current user. Some information can be persistent throughout the current user session. For example, CWebUser already comes with a name property that stores the username of the current user.

Show captcha after <N> unsuccessfull attempts

Updated 2 years ago by zitterHow-tos7 comments – viewed 13,914 times – ( +14 / -4 ) – version 1.1
In this mini howto I would like to show how to add a required captcha field in the login form, after a defined number of unsuccessfull attempts. To do this, I will use the blog demo that you have in default Yii download package (path/to/yii/demos/blog).

Introducción al control de acceso basado en roles (RBAC)

Updated 3 years ago by Juan CalvoTutorials4 comments – viewed 36,209 times – ( +17 / -1 ) – version 1.1
Todos los que hemos empezado a utilizar Yii para crear aplicaciones Web, nos hemos dado de bruces cuando hemos intentado poner a funcionar el RBAC (acceso de control basado en roles).

Module based login

Updated 3 years ago by suriyansureshTutorials6 comments – viewed 46,599 times – ( +14 ) – version 1.1
If you want to add module based login to a site without using RBAC, please follow these guidelines.