From 905ae5234f62b74f0782007ddbab7cfa0027e963 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Tue, 10 Feb 2015 10:07:20 +0100 Subject: [PATCH] basic HTTP authentication used to request the server --- src/oic/oauth2/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oic/oauth2/__init__.py b/src/oic/oauth2/__init__.py index 3c5590e..b984b09 100644 --- a/src/oic/oauth2/__init__.py +++ b/src/oic/oauth2/__init__.py @@ -388,7 +388,8 @@ class PBase(object): logger.debug("SENT COOKIEs: %s" % (_kwargs["cookies"],)) try: - r = requests.request(method, url, **_kwargs) + r = requests.request(method, url, auth=(self.client_id, self.client_secret), + **_kwargs) except Exception as err: logger.error( "http_request failed: %s, url: %s, htargs: %s, method: %s" % (