authenticating linkedin

Authenticating LinkedIn with OAuth 2.0 using CherryPy

LinkedIn is a popular social media platform for professionals. Using their API, we can fetch data from LinkedIn and use for a purpose like logging in using LinkedIn, fetching profile details etc. In this code, we will look at how we can authenticate ourselves so that we can fetch the data from LinkedIn. For this purpose, LinkedIn relies on OAuth 2.0 protocol for granting access. Documentation for this can be found out here.