|
23 | 23 | "verify_args": {"allow_sign_alg_none": True} |
24 | 24 | } |
25 | 25 |
|
26 | | -DB_CONF = { |
27 | | - 'keyjar': { |
28 | | - 'handler': 'oidcmsg.storage.abfile.LabeledAbstractFileSystem', |
29 | | - 'fdir': 'db/{}/keyjar', |
30 | | - 'key_conv': 'oidcmsg.storage.converter.QPKey', |
31 | | - 'value_conv': 'cryptojwt.serialize.item.KeyIssuer', |
32 | | - 'label': 'keyjar' |
33 | | - }, |
34 | | - 'default': { |
35 | | - 'handler': 'oidcmsg.storage.abfile.AbstractFileSystem', |
36 | | - 'fdir': 'db/{}', |
37 | | - 'key_conv': 'oidcmsg.storage.converter.QPKey', |
38 | | - 'value_conv': 'oidcmsg.storage.converter.JSON' |
39 | | - } |
40 | | -} |
41 | | - |
42 | 26 | CLIENT_CONFIG = { |
43 | 27 | "": { |
44 | 28 | "client_preferences": CLIENT_PREFS, |
|
97 | 81 | 'userinfo': { |
98 | 82 | 'class': 'oidcrp.provider.linkedin.UserInfo' |
99 | 83 | } |
100 | | - }, |
101 | | - 'db_conf': DB_CONF |
| 84 | + } |
102 | 85 | }, |
103 | 86 | "facebook": { |
104 | 87 | "issuer": "https://www.facebook.com/v2.11/dialog/oauth", |
|
130 | 113 | 'class': 'oidcrp.oidc.userinfo.UserInfo', |
131 | 114 | 'kwargs': {'conf': {'default_authn_method': ''}} |
132 | 115 | } |
133 | | - }, |
134 | | - 'db_conf': DB_CONF |
| 116 | + } |
135 | 117 | }, |
136 | 118 | 'github': { |
137 | 119 | "issuer": "https://github.com/login/oauth/authorize", |
|
167 | 149 | 'class': 'oidcrp.oidc.refresh_access_token' |
168 | 150 | '.RefreshAccessToken' |
169 | 151 | } |
170 | | - }, |
171 | | - 'db_conf': DB_CONF |
| 152 | + } |
172 | 153 | } |
173 | 154 | } |
174 | 155 |
|
@@ -333,11 +314,11 @@ def test_begin(self): |
333 | 314 | 'redirect_uri', 'response_type', 'scope'} |
334 | 315 |
|
335 | 316 | # nonce and state are created on the fly so can't check for those |
336 | | - assert query['client_id'] == ['eeeeeeeee'] |
337 | | - assert query['redirect_uri'] == [ |
| 317 | + assert query[b'client_id'] == ['eeeeeeeee'] |
| 318 | + assert query[b'redirect_uri'] == [ |
338 | 319 | 'https://example.com/rp/authz_cb/github'] |
339 | | - assert query['response_type'] == ['code'] |
340 | | - assert query['scope'] == ['user public_repo openid'] |
| 320 | + assert query[b'response_type'] == ['code'] |
| 321 | + assert query[b'scope'] == ['user public_repo openid'] |
341 | 322 |
|
342 | 323 | def test_get_session_information(self): |
343 | 324 | rph_1 = RPHandler(BASE_URL, client_configs=CLIENT_CONFIG, |
|
0 commit comments