-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add User's Info to Conver-Token response (#238)
* Add LinkedIn OpenID support A new class, LinkedInOpenIDUserInfo, has been added to the backends file. This class queries LinkedIn's userinfo API, processes the response for errors, and maps response fields to user details. The new functionality extends the social authentication support to include LinkedIn's OpenID Connect service. * Update version to 3.1.0 The version number of the package drf-social-oauth2 has been incremented to '3.1.0' from '3.0.1'. Also, the documentation and installation instructions have been updated to reflect this new version. * Update the authentication class for LinledIn setup. Removed unnecessary config fields since LinkedIn deprecated them since Aug, 2024. * Add methods to retrieve user details via access token Two new methods have been introduced in the views.py file of the drf-social-oauth2 module. The 'get_user' method retrieves the user associated with an access token. The 'prepare_response' method, on the other hand, adds user detailed info such as email, first name, and last name into the response data. The returned response from the 'post' method has been updated to utilize these changes.
- Loading branch information
1 parent
e86ec0e
commit b2a33a9
Showing
6 changed files
with
42 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,7 +6,7 @@ | |
and a ton more! | ||
""" | ||
|
||
__version__ = '3.0.1' | ||
__version__ = '3.1.0' | ||
|
||
try: | ||
from secrets import SystemRandom | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters