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

Commit 6242342

Browse files
committed
Loading configuration file expressed in YAML.
1 parent b15ca59 commit 6242342

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/oidcservice/util.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from urllib.parse import urlsplit
44
from urllib.parse import urlunsplit
55

6+
import yaml
67
from oidcmsg.exception import UnSupported
78

89
logger = logging.getLogger(__name__)
@@ -59,3 +60,7 @@ def get_http_body(req, content_type=URL_ENCODED):
5960
else:
6061
raise UnSupported(
6162
"Unsupported content type: '%s'" % content_type)
63+
64+
65+
def load_yaml_config(file):
66+
return yaml.load(file)

0 commit comments

Comments
 (0)