Central authorization of action for Rest API


(Faizan Khattak) #1

How can i use SRBAC or central authorization in my REST API.
Thanks.


(demonking) #2

You started the post in Yii2 Category and ask to use a Yii 1.1 extension?

Wrong Category or trying to use a yii 1.1 Extension in Yii2 ?


(Faizan Khattak) #3

Ok SRBAC is Yii1.1 extension. Is there extension in Yii2 that i would use in REST API


(demonking) #4

Don’t know of an extension.

But it’s easy to implement in Yii2 with “Behaviors”

https://www.yiiframework.com/doc/guide/2.0/en/rest-authentication