Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
django-linkedin-middleware
Readme
Connect to the LinkedIn API.
$ pip install django-linkedin-middleware
Just add django-linkedin-middleware.middleware.LinkedinMiddleware
to your MIDDLEWARE
.
In the request session will be found 3 differents label :
linkedin_firstName
for the user first namelinkedin_lastName
for the user last namelinkedin_headline
for the user headlineIn your HTML, you can directly add these label to display the data.
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
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.
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.
FAQs
Django Middleware for LinkedIn API
We found that django-linkedin-middleware demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.