Skip to content
This repository was archived by the owner on Jun 1, 2023. It is now read-only.

Commit 539c951

Browse files
committed
Updated version dependencies
1 parent b993132 commit 539c951

2 files changed

Lines changed: 14 additions & 3 deletions

File tree

setup.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ def run_tests(self):
6464
"Programming Language :: Python :: 3.6",
6565
"Topic :: Software Development :: Libraries :: Python Modules"],
6666
install_requires=[
67-
'cryptojwt>=0.3.1',
68-
'oidcservice>=0.6.0',
69-
'oidcmsg>=0.5.0'
67+
'cryptojwt>=0.6.6',
68+
'oidcservice>=0.6.2',
69+
'oidcmsg>=0.6.2'
7070
],
7171
tests_require=[
7272
'pytest',

src/oidcrp/util.py

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1+
import importlib
12
import logging
3+
import os
4+
import sys
25

36
from http.cookiejar import Cookie
47
from http.cookiejar import http2time
58

9+
import yaml
610
from oidcservice import sanitize
711
from oidcservice.exception import TimeFormatError
812
from oidcservice.exception import WrongContentType
@@ -230,3 +234,10 @@ def get_value_type(http_response, body_type):
230234
return 'urlencoded'
231235

232236

237+
def load_configuration(filename):
238+
if filename.endswith('.yaml'):
239+
with open(filename) as fp:
240+
conf = yaml.load(fp)
241+
elif filename.endswith('.py'):
242+
sys.path.insert(0, ".")
243+
conf = importlib.import_module(filename[:-3])

0 commit comments

Comments
 (0)