thephpleague / oauth2-linkedin

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

IdentityProviderException: Bad Request #42

Open ProdigyView opened 4 years ago

ProdigyView commented 4 years ago

I keep getting an IdentityProviderException: Bad Request here:

// Try to get an access token (using the authorization code grant)
            $token = $provider->getAccessToken('authorization_code', [
                'code' => $_GET['code']
            ]);

Code is exactly copied from the example.