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

Commit f61030c

Browse files
committed
Moved 'interface' definition of StateDB to oidcservice.
Python 3.4 doesn't work
1 parent 8e484b2 commit f61030c

2 files changed

Lines changed: 1 addition & 15 deletions

File tree

setup.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,6 @@ def run_tests(self):
6060
classifiers=[
6161
"Development Status :: 4 - Beta",
6262
"License :: OSI Approved :: Apache Software License",
63-
"Programming Language :: Python :: 3.4",
6463
"Programming Language :: Python :: 3.5",
6564
"Programming Language :: Python :: 3.6",
6665
"Topic :: Software Development :: Libraries :: Python Modules"],

src/oidcrp/__init__.py

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
from oidcservice import rndstr
1616
from oidcservice.exception import OidcServiceError
1717
from oidcservice.state_interface import StateInterface
18+
from oidcservice.state_interface import InMemoryStateDataBase
1819

1920
from oidcrp import oauth2
2021
from oidcrp import oidc
@@ -48,20 +49,6 @@ def token_secret_key(sid):
4849
CLIENT_CONFIG = {}
4950

5051

51-
class InMemoryStateDataBase(object):
52-
def __init__(self):
53-
self.db = {}
54-
55-
def set(self, key, value):
56-
self.db[key] = value
57-
58-
def get(self, key):
59-
try:
60-
return self.db[key]
61-
except KeyError:
62-
return None
63-
64-
6552
def add_path(url, path):
6653
if url.endswith('/'):
6754
if path.startswith('/'):

0 commit comments

Comments
 (0)