[Python-modules-commits] [python-social-auth] 66/322: Update base.py

Wolfgang Borgert debacle at moszumanska.debian.org
Sat Dec 24 15:12:49 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 f19f571938c14d55a2f06f97ca00c0e8aa4606cf
Author: travoltino <romansoloha at gmail.com>
Date:   Fri Jan 2 01:01:00 2015 +0200

    Update base.py
    
    Added the ability to configure the certificate validation.
    Change through settings.py SOCIAL_AUTH_NAME_VERIFY_SSL = False to disable certificate validation.
---
 social/backends/base.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/social/backends/base.py b/social/backends/base.py
index 607ec03..7a800a1 100644
--- a/social/backends/base.py
+++ b/social/backends/base.py
@@ -209,6 +209,8 @@ class BaseAuth(object):
 
     def request(self, url, method='GET', *args, **kwargs):
         kwargs.setdefault('headers', {})
+        if not self.setting('VERIFY_SSL') == None:
+            kwargs.setdefault('verify', self.setting('VERIFY_SSL'))
         kwargs.setdefault('timeout', self.setting('REQUESTS_TIMEOUT') or
                                      self.setting('URLOPEN_TIMEOUT'))
 

-- 
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