[Python-modules-commits] [python-social-auth] 151/322: modified docs
Wolfgang Borgert
debacle at moszumanska.debian.org
Sat Dec 24 15:13:02 UTC 2016
This is an automated email from the git hooks/post-receive script.
debacle pushed a commit to tag v0.2.10
in repository python-social-auth.
commit e184646beabb4ac0499bd49509d1e764d026918d
Author: Hassek <tomas at onereceipt.me>
Date: Mon Mar 2 11:31:36 2015 -0430
modified docs
---
README.rst | 2 +-
docs/backends/yahoo.rst | 13 +++++--------
social/backends/yahoo.py | 7 +++++--
3 files changed, 11 insertions(+), 11 deletions(-)
diff --git a/README.rst b/README.rst
index 1ce85b9..11ee81c 100644
--- a/README.rst
+++ b/README.rst
@@ -118,7 +118,7 @@ or current ones extended):
* VK.com_ OpenAPI, OAuth2 and OAuth2 for Applications
* Weibo_ OAuth2
* Xing_ OAuth1
- * Yahoo_ OpenId and OAuth1
+ * Yahoo_ OpenId and OAuth2
* Yammer_ OAuth2
* Yandex_ OAuth1, OAuth2 and OpenId
* Zotero_ OAuth1
diff --git a/docs/backends/yahoo.rst b/docs/backends/yahoo.rst
index b0919a4..ca002f6 100644
--- a/docs/backends/yahoo.rst
+++ b/docs/backends/yahoo.rst
@@ -1,7 +1,7 @@
Yahoo
=====
-Yahoo supports OpenId and OAuth1 for their auth flow.
+Yahoo supports OpenId and OAuth2 for their auth flow.
Yahoo OpenId
@@ -17,17 +17,14 @@ in the ``AUTHENTICATION_BACKENDS`` setting::
)
-Yahoo OAuth1
+Yahoo OAuth2
------------
-
-OAuth 1.0 workflow, useful if you are planning to use Yahoo's API.
+OAuth 2.0 workflow, useful if you are planning to use Yahoo's API.
- Register a new application at `Yahoo Developer Center`_, set your app domain
and configure scopes (they can't be overriden by application).
- Fill ``Consumer Key`` and ``Consumer Secret`` values in the settings::
- SOCIAL_AUTH_YAHOO_OAUTH_KEY = ''
- SOCIAL_AUTH_YAHOO_OAUTH_SECRET = ''
-
-.. _Yahoo Developer Center: https://developer.apps.yahoo.com/projects/
+ SOCIAL_AUTH_YAHOO_OAUTH2_KEY = ''
+ SOCIAL_AUTH_YAHOO_OAUTH2_SECRET = ''
diff --git a/social/backends/yahoo.py b/social/backends/yahoo.py
index 242b096..d156c32 100644
--- a/social/backends/yahoo.py
+++ b/social/backends/yahoo.py
@@ -17,7 +17,7 @@ class YahooOpenId(OpenIdAuth):
class YahooOAuth(BaseOAuth1):
- """Yahoo OAuth authentication backend"""
+ """Yahoo OAuth authentication backend. DEPRECATED"""
name = 'yahoo-oauth'
ID_KEY = 'guid'
AUTHORIZATION_URL = 'https://api.login.yahoo.com/oauth/v2/request_auth'
@@ -85,7 +85,10 @@ class YahooOAuth2(BaseOAuth2):
return None, None, None
def get_user_details(self, response):
- """Return user details from Yahoo Profile"""
+ """
+ Return user details from Yahoo Profile.
+ To Get user email you need the profile private read permission.
+ """
fullname, first_name, last_name = self.get_user_names(
first_name=response.get('givenName'),
last_name=response.get('familyName')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-social-auth.git
More information about the Python-modules-commits
mailing list