Nodge / yii2-eauth

EAuth extension allows to authenticate users by the OpenID, OAuth 1.0 and OAuth 2.0 providers.
BSD 2-Clause "Simplified" License
196 stars 128 forks source link

Set Access Token Directly #86

Open touqeershafi opened 8 years ago

touqeershafi commented 8 years ago

I'm creating a REST API for users to register or login in my app. So mobile app will be sending me access token for each service so how can i set access token directly to get user details from respective platform example:

$eauth = Yii::$app->eauth->getIdentity("facebook");
$eauth->setAccessToken(/* Facebook Access Token*/);
$eatuh->getAttributes(); // which has to return Users details.