Skip to main content

Django LinkedIn Middleware

PyPI Build Status

Connect to the LinkedIn API.

Installation

$ pip install django-linkedin-middleware

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

Usage

In the request session will be found 3 differents label :

  • linkedin_firstName for the user first name
  • linkedin_lastName for the user last name
  • linkedin_headline for the user headline

In your HTML, you can directly add these label to display the data.

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.

Metadata

Release files for django-linkedin-middleware 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for django-linkedin-middleware 0.1.2
File Size Uploaded
django_linkedin_middleware-0.1.2.tar.gz 8.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for django-linkedin-middleware 0.1.2
File Interpreter ABI Platform
django_linkedin_middleware-0.1.2-py2-none-any.whl Python 2 none any Details

Total release size: 17.7 kB

Release files / django_linkedin_middleware-0.1.2.tar.gz

Download URL django_linkedin_middleware-0.1.2.tar.gz
Size 8.0 kB
Tags Source
SHA-256 checksum
How to use checksums
ce87f7d4132eb9ff11dd450b723d55482e3de71cfd28c70e0d083ae4b2136c63
BLAKE2b-256 checksum
How to use checksums
fdfe39c177383aeafb88e6f34efa38e76a3c6d489da3b1f2caf5b57acedd58aa
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.3 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release files / django_linkedin_middleware-0.1.2-py2-none-any.whl

Download URL django_linkedin_middleware-0.1.2-py2-none-any.whl
Size 9.7 kB
Tags Python 2
SHA-256 checksum
How to use checksums
77989d228fc83880b86021323054718acb36677bf4de7ef9e1d2774b44a7120b
BLAKE2b-256 checksum
How to use checksums
8f3b5a0f902b0d400d3ce9f89f1206e0af6cdef78ce4650188f8d3331e2d40d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/1.12.1 pkginfo/1.4.2 requests/2.18.3 setuptools/40.6.2 requests-toolbelt/0.8.0 tqdm/4.28.1 CPython/2.7.15rc1

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page