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

Commit c68bcc7

Browse files
committed
Might not be any behaviour args.
1 parent 76c3fdc commit c68bcc7

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

src/oidcrp/rp_handler.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -276,8 +276,12 @@ def do_client_registration(self, client=None,
276276
v for k, v in callbacks.items() if not k.startswith('__')])
277277
_context.set('callbacks', callbacks)
278278

279-
_params = RegistrationRequest().parameters()
280-
request_args = {k: v for k, v in behaviour_args.items() if k in _params}
279+
if behaviour_args:
280+
_params = RegistrationRequest().parameters()
281+
request_args = {k: v for k, v in behaviour_args.items() if k in _params}
282+
else:
283+
request_args = {}
284+
281285
load_registration_response(client, request_args=request_args)
282286

283287
def add_callbacks(self, service_context):

0 commit comments

Comments
 (0)