feat: added scope
This commit is contained in:
parent
c251451957
commit
26071b9a3c
1 changed files with 5 additions and 5 deletions
|
@ -10,10 +10,10 @@ use Auth\OAuth;
|
|||
|
||||
class Stackoverflow extends OAuth
|
||||
{
|
||||
// /**
|
||||
// * @var string
|
||||
// */
|
||||
// protected $version = 'v4';
|
||||
/**
|
||||
* @var string
|
||||
*/
|
||||
protected $version = 'v2.2';
|
||||
/**
|
||||
* @var array
|
||||
*/
|
||||
|
@ -35,7 +35,7 @@ class Stackoverflow extends OAuth
|
|||
return 'https://stackoverflow.com/oauth?'.
|
||||
'client_id='.urlencode($this->appID).
|
||||
'&redirect_uri='.urlencode($this->callback).
|
||||
'&scope=https://www.googleapis.com/auth/userinfo.email+https://www.googleapis.com/auth/userinfo.profile'.
|
||||
'&scope=private_info'.
|
||||
'&state='.urlencode(json_encode($this->state));
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue