Linkedin-auth is an easy to setup linkedin authentication/registration mechanism with support for the Django Framework
-
Installation:
pip install git+https://github.com/technoarch-softwares/linkedin-auth -
Add
"linkedin_login"to yourINSTALLED_APPSsetting like this::INSTALLED_APPS = (
... 'linkedin_login',)
-
Add this lines to your project settings file:
`SITE_URL = 'SITE DOMIAN' #like 'http://localhost:8000/'`
`ERROR_REDIRECT_URL = 'SITE LOGIN URL'`
`LINKEDIN_REDIRECT_URL = 'linkedin/authentication'`
-
Add Linkedin Secret Keys and Client Id
LINKEDIN_CLIENT_ID = 'LINKEDIN API KEY'LINKEDIN_CLIENT_SECRET = 'LINKEDIN API SECRET' -
Include the
linkedin_loginURLconf in your project urls.py like this::url(r'^linkedin/', include('linkedin_login.urls')), -
Run
python manage.py migrateto create thelinkedin_loginmodels. -
It will create a table into database named by
linkedin_login_linkedinprofile. -
Visit http://127.0.0.1:8000/linkedin/ to participate in the linkedin authentication.
#Features
-
Access the LINKEDIN API, from Your website (Using OAuth)
-
Django User Registration (Convert LINKEDIN user data into a user model)
-
Store user data locally.
-
LINKEDIN QL access
-
Automated reauthentication (For expired tokens)