From be4cb35915c2600e443e553de9c70ac84db3e336 Mon Sep 17 00:00:00 2001 From: Serghei MIHAI Date: Tue, 10 Feb 2015 10:03:55 +0100 Subject: [PATCH] using directly requests to retreive user information --- src/oic/oic/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/oic/oic/__init__.py b/src/oic/oic/__init__.py index 95934a5..30c2a8d 100644 --- a/src/oic/oic/__init__.py +++ b/src/oic/oic/__init__.py @@ -9,6 +9,7 @@ import urlparse import json import logging import os +import requests from oic.oauth2.message import ErrorResponse @@ -722,7 +723,7 @@ class Client(oauth2.Client): path, body, h_args)) try: - resp = self.http_request(path, method, data=body, **h_args) + resp = requests.request(method, path, **h_args) except oauth2.MissingRequiredAttribute: raise