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

Commit 066fb69

Browse files
committed
Need to be able to dump configuration as dict.
1 parent 0bf76ef commit 066fb69

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

src/oidcrp/configure.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import json
44
import logging
55
import os
6-
from typing import Any
76
from typing import Dict
87
from typing import List
98
from typing import Optional
@@ -77,6 +76,12 @@ def get(self, item, default=None):
7776
def __contains__(self, item):
7877
return item in self.__dict__
7978

79+
def items(self):
80+
for key in self.__dict__:
81+
if key.startswith('__') and key.endswith('__'):
82+
continue
83+
yield key, getattr(self, key)
84+
8085

8186
URIS = [
8287
"redirect_uris", 'post_logout_redirect_uris', 'frontchannel_logout_uri',

0 commit comments

Comments
 (0)