I integrated my website with the Linkedin OAuth api to retrieve the basic profile settings, and it is the only way to log in to my website (so logging in should go through Linkedin each time). The user has to grant permissions upon login. But this now happens on every login; I cannot manage to make Linkedin remember that the user has already granted access (so what I want is that the second time for it to just redirect back to my site automatically)
I receive an access token at every successful login, I save it in the database but can't find a way to use this in a subsequent request (I'm not even sure if this is how I'm supposed to do it?)
The endpoint I am using to login is:
"https://api.linkedin.com/uas/oauth/authorize?oauth_token=" . $token
Where $token is an oauth token
Please tell me how to make the subsequent requests without Linkedin asking permissions
thanks