@@ -78,7 +78,7 @@ def __init__(self, auth_req_callback_func, internal_attributes, config, base_url
78
78
self .KEY_CUSTOM_ATTR_RELEASE )
79
79
self .idp = None
80
80
81
- def handle_authn_response (self , context , internal_response ):
81
+ def handle_authn_response (self , context , internal_response , ** kwargs ):
82
82
"""
83
83
See super class method satosa.frontends.base.FrontendModule#handle_authn_response
84
84
:type context: satosa.context.Context
@@ -87,7 +87,7 @@ def handle_authn_response(self, context, internal_response):
87
87
"""
88
88
return self ._handle_authn_response (context , internal_response , self .idp )
89
89
90
- def handle_authn_request (self , context , binding_in ):
90
+ def handle_authn_request (self , context , binding_in , ** kwargs ):
91
91
"""
92
92
This method is bound to the starting endpoint of the authentication.
93
93
@@ -174,7 +174,7 @@ def _validate_config(self, config):
174
174
except KeyError as e :
175
175
raise ValueError ("Missing configuration key: %s" % key ) from e
176
176
177
- def _handle_authn_request (self , context , binding_in , idp ):
177
+ def _handle_authn_request (self , context , binding_in , idp , ** kwargs ):
178
178
"""
179
179
See doc for handle_authn_request method.
180
180
@@ -286,7 +286,7 @@ def _filter_attributes(self, idp, internal_response, context,):
286
286
287
287
return attributes
288
288
289
- def _handle_authn_response (self , context , internal_response , idp ):
289
+ def _handle_authn_response (self , context , internal_response , idp , ** kwargs ):
290
290
"""
291
291
See super class satosa.frontends.base.FrontendModule
292
292
@@ -425,7 +425,7 @@ def _handle_backend_error(self, exception, idp):
425
425
satosa_logging (logger , logging .DEBUG , "HTTPargs: %s" % http_args , exception .state )
426
426
return make_saml_response (resp_args ["binding" ], http_args )
427
427
428
- def _metadata_endpoint (self , context ):
428
+ def _metadata_endpoint (self , context , ** kwargs ):
429
429
"""
430
430
Endpoint for retrieving the backend metadata
431
431
:type context: satosa.context.Context
@@ -589,7 +589,7 @@ def _load_endpoints_to_config(self, provider, target_entity_id, config=None):
589
589
idp_conf ["service" ]["idp" ]["endpoints" ][service ] = idp_endpoints
590
590
return idp_conf
591
591
592
- def _load_idp_dynamic_endpoints (self , context ):
592
+ def _load_idp_dynamic_endpoints (self , context , ** kwargs ):
593
593
"""
594
594
Loads an idp server that accepts the target backend name in the endpoint url
595
595
ex: /<backend_name>/sso/redirect
@@ -621,7 +621,7 @@ def _load_idp_dynamic_entity_id(self, state):
621
621
idp_config = IdPConfig ().load (idp_config_file , metadata_construction = False )
622
622
return Server (config = idp_config )
623
623
624
- def handle_authn_request (self , context , binding_in ):
624
+ def handle_authn_request (self , context , binding_in , ** kwargs ):
625
625
"""
626
626
Loads approved endpoints dynamically
627
627
See super class satosa.frontends.saml2.SAMLFrontend#handle_authn_request
@@ -637,7 +637,7 @@ def handle_authn_request(self, context, binding_in):
637
637
idp = self ._load_idp_dynamic_endpoints (context )
638
638
return self ._handle_authn_request (context , binding_in , idp )
639
639
640
- def _create_state_data (self , context , resp_args , relay_state ):
640
+ def _create_state_data (self , context , resp_args , relay_state , ** kwargs ):
641
641
"""
642
642
Adds the frontend idp entity id to state
643
643
See super class satosa.frontends.saml2.SAMLFrontend#save_state
@@ -661,7 +661,7 @@ def handle_backend_error(self, exception):
661
661
idp = self ._load_idp_dynamic_entity_id (exception .state )
662
662
return self ._handle_backend_error (exception , idp )
663
663
664
- def handle_authn_response (self , context , internal_response ):
664
+ def handle_authn_response (self , context , internal_response , ** kwargs ):
665
665
"""
666
666
See super class satosa.frontends.base.FrontendModule#handle_authn_response
667
667
:param context:
@@ -708,7 +708,7 @@ class SAMLVirtualCoFrontend(SAMLFrontend):
708
708
KEY_ORGANIZATION = 'organization'
709
709
KEY_ORGANIZATION_KEYS = ['display_name' , 'name' , 'url' ]
710
710
711
- def handle_authn_request (self , context , binding_in ):
711
+ def handle_authn_request (self , context , binding_in , ** kwargs ):
712
712
"""
713
713
See super class
714
714
satosa.frontends.saml2.SAMLFrontend#handle_authn_request
@@ -723,7 +723,7 @@ def handle_authn_request(self, context, binding_in):
723
723
idp = self ._create_co_virtual_idp (context )
724
724
return self ._handle_authn_request (context , binding_in , idp )
725
725
726
- def handle_authn_response (self , context , internal_response ):
726
+ def handle_authn_response (self , context , internal_response , ** kwargs ):
727
727
"""
728
728
See super class satosa.frontends.base.
729
729
FrontendModule#handle_authn_response
@@ -734,7 +734,7 @@ def handle_authn_response(self, context, internal_response):
734
734
735
735
return self ._handle_authn_response (context , internal_response )
736
736
737
- def _handle_authn_response (self , context , internal_response ):
737
+ def _handle_authn_response (self , context , internal_response , ** kwargs ):
738
738
"""
739
739
"""
740
740
# Using the context of the current request and saved state from the
0 commit comments