C
C
cat_crash2013-05-21 15:58:33
Yii
cat_crash, 2013-05-21 15:58:33

2 authorization modules

Good day.

I need an idea how to tie 2 authorization modules with different “authentication channels” in YII

. I have such a situation that users can log in on the frontend in the ISP billing. This is now implemented and works great. But the site must have an admin panel (a separate module) in which I would like to make authorization separate and not tied to billing in any way, which is quite logical, because. billing cannot know anything about the administrator.

What will be the ideas?

Answer the question

In order to leave comments, you need to log in

4 answer(s)
P
p4s8x, 2013-05-26
@p4s8x

Look at the implementation of the Gii module
github.com/yiisoft/yii/blob/master/framework/gii/GiiModule.php
It uses authorization separate from the main application - inside the module ( own useridenity , and for CWebUser - 'stateKeyPrefix'=>'gii' , )

M
mosario, 2013-12-09
@mosario

what about RBAC?

A
A3a, 2013-05-22
@A3a

Create authorization components in the admin module

A
Appp Zooo, 2014-06-19
@ikeagold

https://github.com/prawee/yii-user - original module without patches

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question