Yii2 REST API authentication

I was looking for tutorials and read yii’s official tutorial about REST API and authentication, but I just can’t figure it out how to authenticate user via REST API. How to configure it.

I’m using Yii 2.0.1 advanced template