How does the Yii2authmanager component differentiate the front and back ends?

Source: Internet
Author: User
For example, if getAuthManager is written to yiiwebUser, it is always a component that needs to be obtained by getAuthManager no matter whether it is in the foreground or in the background, although I can find a data table that cannot be specified for this component in the configuration file on the front and back ends to distinguish RBAC on the front and back ends...


For example, if getAuthManager is written to yii \ web \ User, it is always a component that needs to be obtained by getAuthManager no matter whether it is in the foreground or in the background, although I can find a data table that cannot be specified for this component in the configuration file in the front and back end to distinguish between the front-end and the back-end RBAC, but I need to manage the front-end RBAC in the back end is 2B.

Reply content:


For example, if getAuthManager is written to yii \ web \ User, it is always a component that needs to be obtained by getAuthManager no matter whether it is in the foreground or in the background, although I can find a data table that cannot be specified for this component in the configuration file in the front and back end to distinguish between the front-end and the back-end RBAC, but I need to manage the front-end RBAC in the back end is 2B.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.