using directly requests to retreive user information

This commit is contained in:
Serghei Mihai 2015-02-10 10:03:55 +01:00
parent 2b70a2a9f8
commit be4cb35915
1 changed files with 2 additions and 1 deletions

View File

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