artdarek / oauth-4-laravel

OAuth Service Provider for Laravel 4
684 stars 217 forks source link

Handle rejected requests #132

Open kapoormanu opened 9 years ago

kapoormanu commented 9 years ago

If a user rejects permission for one or more scopes my app needs, I have to re-request permissions from the provider(e.g. Facebook). The API says i have to pass something like "auth_type" => "rerequest" with the request (e.g. Facebook docs for rerequest)

It seems there isn't a way I can do this using this package.

08euccs014 commented 9 years ago

Hi,

you could pass the parameter as follows :

$fb = OAuth::consumer( 'Facebook' );
$reAskingData = array('auth_type' => 'rerequest');                  
$url = $fb->getAuthorizationUri($reAskingData);

Hope it will work for you.