I need your help, I have been trying to get authclient working for Rest but was unable to do so. My application built is on Yii2 is restful and I need to login the user and send auth-token to them.
Usually how I do it is to handle login and everything using Yii, and once user is logged I AngularJS application is called. Angular application then takes care for everything including access rights and everything else.
Othere way is to make for example REST service which will listen for username and password. When credentials are good, generate session or any other key for user and during any subsequent calls make sure user is logged in.
Thank you for you suggestion, but that wont work for me as we have already finished most of the application and changing that will be longer time. I see the yii authclient and seems we can use it but I just can find the right way.
Thank you Janisto but that did not help I have built the Yii application to server as RestFul Service and angularJs is used only from front end making api calls
I have tried facebook login and got it working, I created a component for Facebook, so the Facebook SDK js which logs in and gets the access code, and the callback is used to make a call to the api I have created which in turn gets me the access token for the other api’s.
But its not very concrete I saw the authclient and thought it would be easier to use it but could not find any examples