using directly requests to retreive user information
This commit is contained in:
parent
2b70a2a9f8
commit
be4cb35915
|
@ -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
|
||||
|
||||
|
|
Reference in New Issue