This repository was archived by the owner on Jun 23, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +8
-3
lines changed Expand file tree Collapse file tree 6 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ build-backend = "setuptools.build_meta"
7
7
8
8
[metadata ]
9
9
name = " oidcop"
10
- version = " 2.3.0 "
10
+ version = " 2.3.2 "
11
11
author = " Roland Hedberg"
12
12
author_email =
" [email protected] "
13
13
description = " Python implementation of an OAuth2 AS and an OIDC Provider"
Original file line number Diff line number Diff line change 1
1
import secrets
2
2
3
- __version__ = "2.3.1 "
3
+ __version__ = "2.3.2 "
4
4
5
5
DEF_SIGN_ALG = {
6
6
"id_token" : "RS256" ,
Original file line number Diff line number Diff line change @@ -149,6 +149,8 @@ def __init__(
149
149
150
150
if key == "template_dir" :
151
151
_val = os .path .abspath (_val )
152
+ if key == "keys" :
153
+ key = "key_conf"
152
154
153
155
setattr (self , key , _val )
154
156
Original file line number Diff line number Diff line change @@ -202,7 +202,7 @@ def __init__(
202
202
self .template_handler = Jinja2TemplateHandler (_loader )
203
203
204
204
# self.setup = {}
205
- _keys_conf = conf .get ("keys " )
205
+ _keys_conf = conf .get ("key_conf " )
206
206
if _keys_conf :
207
207
jwks_uri_path = _keys_conf ["uri_path" ]
208
208
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ def test_op_configure_from_file():
51
51
52
52
assert configuration
53
53
assert "add_on" in configuration
54
+ assert "key_conf" in configuration
54
55
authz_conf = configuration ["authz" ]
55
56
assert set (authz_conf .keys ()) == {"kwargs" , "class" }
56
57
id_token_conf = configuration .get ("id_token" )
@@ -111,6 +112,7 @@ def test_server_configure():
111
112
assert "op" in configuration
112
113
op_conf = configuration ["op" ]
113
114
assert "add_on" in op_conf
115
+ assert "key_conf" in op_conf
114
116
authz = op_conf ["authz" ]
115
117
assert set (authz .keys ()) == {"kwargs" , "class" }
116
118
id_token_conf = op_conf .get ("id_token" , {})
Original file line number Diff line number Diff line change @@ -111,6 +111,7 @@ def test_capabilities_default():
111
111
"code id_token token" ,
112
112
}
113
113
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'
114
115
115
116
116
117
def test_capabilities_subset1 ():
You can’t perform that action at this time.
0 commit comments