REST API in Yii1 with oAuth2?

Somebody please tell me how to use oAuth2 with yii1 in web services. I created small REST API in Yii1. I want to use oAuth 2 for authentications. Please help me

Thanks in advance! ::)