Pages in wikiX
Showing 1 - 10 of 22 for auth

Yet another implementation of CPhpAuthManager.

How-tosUpdated 4 years ago by seenivasan 13072 views, 3 comments – ( +8 / -2 )
 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 

Integrating HybridAuth directly into Yii without an extension

How-tosUpdated 4 years ago by biz dev 41571 views, 8 comments – ( +15 / -1 )
This article tries to explain the steps required in integrating the HybridAuth into Yii directly, without using an extension. The reason for not using an existing extension, such as hoauth is because 

Simple authorization system

How-tosUpdated 4 years ago by Gustavo 35445 views, 1 comment – ( +16 / -1 )
How to create a simple (non-RBAC) authorization system As I notice reading the forum, this is a frequent doubt, so I decided to write this article. This article covers only the authorization system. I 

CPhpAuthManager - how it works, and when to use it

How-tosUpdated 6 years ago by dckurushin 24706 views, 5 comments – ( +1 / -5 )
Introduction Before reading this article, you should first learn this How to setup RBAC with a php file It is actually mentioned in the documentation CPhpAuthManager : CPhpAuthManager is mainly 

Console Based CAuthManager Helper

How-tosUpdated 2 years ago by bluyell 6276 views, 1 comment – ( +1 / -1 )
 documentation. Command Line Usage This is a sample command line, it creates a operation in your RBAC system either implemented by CDbAuthManager, CPhpAuthManager or other compatible with CAuthManager. How 

Yii User and Rights Implementation

How-tosUpdated 3 years ago by Rajith R 28495 views, 12 comments – ( +7 / -8 )
implementing some features of yii user and rights. some tips.. After Installing Yii Users and Rights to Newly Created Yii app we have to assign dynamic roles to a user at the time of user creation . C 

Configuring different sessions for backend and frontend in Yii advanced app

How-tosUpdated 2 years ago by Kartik V 30515 views, 2 comments – ( +48 / -1 )
Problem Statement After you have setup your Yii2 advanced application, you now have setup your user authentication for both frontend and backend. However, if you have first logged into frontend, and t 

How to limit number of guest page views

How-tosUpdated 3 years ago by PeRoChAk 5285 views, 1 comment – ( +3 / -1 )
In some cases, we have to limit the number of page views for the guests users. Yii provide an efficient method to get this. Here is how you can do this, if your application requires this. Open file pr 

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

How-tosUpdated 2 years ago by le_top 25071 views, 1 comment – ( +6 / -1 )
Getting "Expired token" errors ? Here is a solution to avoid invalid CSRF on POST or ajax requests, or user identity changes. The YII_CSRF_TOKEN validity is a real pain actually if your end user maint 

Yii2: Configuring different sessions for backend and frontend in Yii Advanced Application Template

How-tosUpdated 3 years ago by hrnair 26954 views, 2 comments – ( +7 / -1 )
This is as an extension of this wiki by Kartik V which shows to make different enableAutoLogin cookies for frontend and backend. What else is needed That take us in a situation where if either the bac