init auth based on https://github.com/robregonm/yii2-auth