-
Notifications
You must be signed in to change notification settings - Fork 104
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to Authenticate Through Rest API with YII2User? #217
Comments
Hey, There isn't really anything special needed to do restful api authentication with this module. You can just do the basic yii2 stuff following the guide If you're writing custom classes, are you updating the config properly? |
Thanks for your fast reply Amnah, Your extension is working well everywhere, is just an api controller which is not working. Just in case, here's the code.... ======================================================== use yii\helpers\ArrayHelper; class FilmController extends ActiveController {
} ======================================================== And (if it helps), here's my Url Manager.... 'urlManager' => [
If you have any clue, it's more than welcome. All the Best, Diego. |
Hmm, exactly what isn't working? What's happening |
Hi,
I like the extension but i'm finding some difficulties to implement API authentication when using it
(i already have a controller that works fine with the traditional User model but once i use YII2User
i can't make it work).
Do you have any example of a behavior that i could insert into an API controller to authenticate a user
through Rest Api?
Best Regards,
Diego.
The text was updated successfully, but these errors were encountered: