yii2-oauth2-server icon indicating copy to clipboard operation
yii2-oauth2-server copied to clipboard

How to use scopes?

Open Rafinol opened this issue 5 years ago • 0 comments

For example access_token has read_users scope. How to write a check for this scope? Somethink like that:

if(Yii::$app->user->can('_read_users_ ')){
    ...
}

Rafinol avatar Nov 05 '20 10:11 Rafinol