Yii Guide claims to support OAuth2 among others in Rest and here I quote
Now I need to make API for a mobile app. I have checked ther Token bearer and seems to me its more of client thing than a server thing. Anyone that can help me get right direction on making two legged OAuth2.
All I need is to authenticate app and then user, and then generate token which will persist until expiry and refresh token for regenerating the token again.
I’m also attempting to implement OAuth2 authentication in the API I’m implementing using Yii2. It seems the guide in the library is lacking instructions. Maybe someone has implemented OAuth2 in Yii2 successfully?
This template have configured github.com/Filsh/yii2-oauth2-server extension, structure to quick start develop RESTful API and some test data to see how it works.
Also exists docker image for quick look (read description to repo).
First you have done a great deal of job, I appreciate that. I was not asking you duplicate it here, no! I was asking for simple tutorial on how the yii2-oauth2-server works.
That will help beginners and hence add contributors. As per its github issues, amny are asking for this. So tutorial+sample(which you have done a good job there) will make a good documentation!