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

Commit dbdb81e

Browse files
authored
Merge pull request #168 from IdentityPython/version_sync
Version sync
2 parents 6daef71 + e25bf71 commit dbdb81e

File tree

6 files changed

+8
-3
lines changed

6 files changed

+8
-3
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
77

88
[metadata]
99
name = "oidcop"
10-
version = "2.3.0"
10+
version = "2.3.2"
1111
author = "Roland Hedberg"
1212
author_email = "[email protected]"
1313
description = "Python implementation of an OAuth2 AS and an OIDC Provider"

src/oidcop/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import secrets
22

3-
__version__ = "2.3.1"
3+
__version__ = "2.3.2"
44

55
DEF_SIGN_ALG = {
66
"id_token": "RS256",

src/oidcop/configure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,8 @@ def __init__(
149149

150150
if key == "template_dir":
151151
_val = os.path.abspath(_val)
152+
if key == "keys":
153+
key = "key_conf"
152154

153155
setattr(self, key, _val)
154156

src/oidcop/endpoint_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ def __init__(
202202
self.template_handler = Jinja2TemplateHandler(_loader)
203203

204204
# self.setup = {}
205-
_keys_conf = conf.get("keys")
205+
_keys_conf = conf.get("key_conf")
206206
if _keys_conf:
207207
jwks_uri_path = _keys_conf["uri_path"]
208208

tests/test_00_configure.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def test_op_configure_from_file():
5151

5252
assert configuration
5353
assert "add_on" in configuration
54+
assert "key_conf" in configuration
5455
authz_conf = configuration["authz"]
5556
assert set(authz_conf.keys()) == {"kwargs", "class"}
5657
id_token_conf = configuration.get("id_token")
@@ -111,6 +112,7 @@ def test_server_configure():
111112
assert "op" in configuration
112113
op_conf = configuration["op"]
113114
assert "add_on" in op_conf
115+
assert "key_conf" in op_conf
114116
authz = op_conf["authz"]
115117
assert set(authz.keys()) == {"kwargs", "class"}
116118
id_token_conf = op_conf.get("id_token", {})

tests/test_00_server.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ def test_capabilities_default():
111111
"code id_token token",
112112
}
113113
assert server.endpoint_context.provider_info["request_uri_parameter_supported"] is True
114+
assert server.endpoint_context.jwks_uri == 'https://127.0.0.1:80/static/jwks.json'
114115

115116

116117
def test_capabilities_subset1():

0 commit comments

Comments
 (0)