This interfaces defines the implementation class of the user components which is going to be used if the
rest class has the luya\traits\RestBehaviorsTrait implemented.
Returns the class object for the authentication of the rest api. If the return value is false the
authentication is disabled for the whole rest controller.
Method Details
userAuthClass()
publicmethod
return a user object:
php
return Yii::$app->adminuser;
return a class string will create a new object from this class string:
php
return \admin\components\User::className();
return false will disabled the authentication proccess for this rest controller
php
return false;