2 Authentication system

Hello,

For my application I would like to create two separated Authentication system:

  • A public system, like the Yii2-User module, where users can register, access account and fill various forms.

  • A private system, where managers (with various roles) can process the users data and do various administrative tasks.

But I don’t know how to have two separated authManagers.

Thanks for your suggestions

No need to have 2 auth systems. A single auth system is enough.

What you have to do is design an authorization hierarchy with appropriate roles … with the roles for standard users and those for administrative users.

http://www.yiiframework.com/doc-2.0/guide-security-authorization.html