thephpleague / oauth2-linkedin

LinkedIn Provider for the OAuth 2.0 Client
MIT License
83 stars 37 forks source link

How call State and scope and where i need to call please clarify? #26

Open Boni619 opened 5 years ago

Boni619 commented 5 years ago

$options = [ 'state' => 'OPTIONAL_CUSTOM_CONFIGURED_STATE', 'scope' => ['r_basicprofile','r_emailaddress'] // array or string ];

$authorizationUrl = $provider->getAuthorizationUrl($options);