Skip to main content

Django Middleware for LinkedIn API

Project description

Django LinkedIn Middleware

Build Status

Connect to the LinkedIn API.

Installation

$ pip install django-linkedin-middleware

Just add django-linkedin-middleware.middleware.LinkedinMiddleware to your MIDDLEWARE.

Settings

Linkedin Configuration

You need to create an application on the linkedin developer pages to https://www.linkedin.com/developer/apps to receive your credentials

LINKEDIN_APPLICATION_KEY : the Client ID

LINKEDIN_APPLICATION_SECRET : the Client Secret

LINKEDIN_APPLICATION_RETURN_CALLBACK : the callback url (you should add the same url in the linkedin developer page)

LINKEDIN_APPLICATION_PROFILE : a table of different application permissions. Here's a list of the permissions : ['r_basicprofile', 'r_emailaddress', 'rw_company_admin', 'w_share']. You could also add the permission

Application Configuration

PAGES_WITH_LINKEDIN_AUTH_REQUIRED : the list of all pages on which you should force an authentication. By default, it will be all the pages (example : ['*'])

PAGES_WITHOUT_LINKEDIN_AUTH_REQUIRED : the list of all pages on which the authentication is disable.

Thanks

I only made a middleware for simply connect to linkedin and display information in the session. I based my work on the python-linkedin project.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django_linkedin_middleware-0.1.1.tar.gz (7.9 kB view details)

Uploaded Source

Built Distribution

File details

Details for the file django_linkedin_middleware-0.1.1.tar.gz.

File metadata

  • Download URL: django_linkedin_middleware-0.1.1.tar.gz
  • Upload date:
  • Size: 7.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_linkedin_middleware-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bb49d9ea77dad6cccdfb64106dfc17125ec0f5dfe34f7479fe5815ff9f8de4e2
MD5 a1562cfbb4dbdd8fbb96bfa0c8f39531
BLAKE2b-256 768b39d0d3521a8f4f57d5a032039ad6e33b1d7610596492665038cc851a40e9

See more details on using hashes here.

File details

Details for the file django_linkedin_middleware-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: django_linkedin_middleware-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/1.12.1 pkginfo/1.4.2 requests/2.19.1 setuptools/40.4.3 requests-toolbelt/0.8.0 tqdm/4.26.0 CPython/3.7.0

File hashes

Hashes for django_linkedin_middleware-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 a5530b2f67d9e052c51cd2aee96fff7f871a51e6907b1f41a9114bc430598aeb
MD5 0701d2188c717cb9bf0cbc7f1af6a5f1
BLAKE2b-256 b2f11544135d31fd6c2278871cdc5f75fbe2598ee6773471ab4e92e63d7cb88f

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page