Skip to content

Commit 03820d8

Browse files
committed
Add session_params section
1 parent 12eb74e commit 03820d8

File tree

2 files changed

+51
-15
lines changed

2 files changed

+51
-15
lines changed

tests/op_config.json

Lines changed: 38 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -102,27 +102,50 @@
102102
"class": "idpyoidc.server.login_hint.LoginHint2Acrs",
103103
"kwargs": {
104104
"scheme_map": {
105-
"email": ["idpyoidc.server.user_authn.authn_context.INTERNETPROTOCOLPASSWORD"]
105+
"email": [
106+
"idpyoidc.server.user_authn.authn_context.INTERNETPROTOCOLPASSWORD"
107+
]
106108
}
107109
}
108110
},
109111
"session_params": {
110-
"password": "ses_key",
111-
"salt": "ses_salt",
112-
"sub_func": {
113-
"public": {
114-
"class": "idpyoidc.server.session.manager.PublicID",
115-
"kwargs": {
116-
"salt": "mysalt"
117-
}
112+
"encrypter": {
113+
"kwargs": {
114+
"keys": {
115+
"key_defs": [
116+
{
117+
"type": "OCT",
118+
"use": [
119+
"enc"
120+
],
121+
"kid": "password"
122+
},
123+
{
124+
"type": "OCT",
125+
"use": [
126+
"enc"
127+
],
128+
"kid": "salt"
129+
}
130+
]
118131
},
119-
"pairwise": {
120-
"class": "idpyoidc.server.session.manager.PairWiseID",
121-
"kwargs": {
122-
"salt": "mysalt"
123-
}
132+
"iterations": 1
133+
}
134+
},
135+
"sub_func": {
136+
"public": {
137+
"class": "idpyoidc.server.session.manager.PublicID",
138+
"kwargs": {
139+
"salt": "mysalt"
140+
}
141+
},
142+
"pairwise": {
143+
"class": "idpyoidc.server.session.manager.PairWiseID",
144+
"kwargs": {
145+
"salt": "mysalt"
124146
}
125-
}
147+
}
148+
}
126149
},
127150
"template_dir": "templates",
128151
"token_handler_args": {

tests/test_server_01_claims.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,19 @@ def full_path(local_file):
102102
"kwargs": {"db_file": full_path("users.json")},
103103
},
104104
"claims_interface": {"class": "idpyoidc.server.session.claims.ClaimsInterface", "kwargs": {}},
105+
"session_params": {
106+
"encrypter": {
107+
"kwargs": {
108+
"keys": {
109+
"key_defs": [
110+
{"type": "OCT", "use": ["enc"], "kid": "password"},
111+
{"type": "OCT", "use": ["enc"], "kid": "salt"}
112+
]
113+
},
114+
"iterations": 1
115+
}
116+
}
117+
}
105118
}
106119

107120
USER_ID = "diana"

0 commit comments

Comments
 (0)