Open technofriends opened 10 years ago
Hi,
What is the correct code that you suggest?
Regards.
Any luck with this? Facing similar issue.
yes based on linkedin redirect url. use the code that passed in the url from request and set authentication_code
based on Django linkedin_authorization_code = request.GET['code'] linkedin.LinkedInAuthentication("auth_key", "auth_secret", "redirect_url") linkedin_auth.authorization_code = linkedin_authorization_code
Linkedin's developer documentation states that the URl should have the following structure when making a request for the access https://www.linkedin.com/uas/oauth2/accessToken?grant_type=authorization_code &code=AUTHORIZATION_CODE &redirect_uri=YOUR_REDIRECT_URI &client_id=YOUR_API_KEY &client_secret=YOUR_SECRET_KEY
Therefore, should the get_access_token() not be rewritten as: