11import logging
22
33import satosa .logging_util as lu
4- import satosa .micro_services .base
4+ from satosa .frontends .base import FrontendModule
55from satosa .response import Response
66
77
88logger = logging .getLogger (__name__ )
99
1010
11- class PingFrontend (satosa . frontends . base . FrontendModule ):
11+ class PingFrontend (FrontendModule ):
1212 """
1313 SATOSA frontend that responds to a query with a simple
1414 200 OK, intended to be used as a simple heartbeat monitor.
@@ -19,20 +19,20 @@ def __init__(self, auth_req_callback_func, internal_attributes, config, base_url
1919
2020 self .config = config
2121
22- def handle_authn_response (self , context , internal_resp , extra_id_token_claims = None ):
22+ def handle_authn_response (self , context , internal_resp ):
2323 """
2424 See super class method satosa.frontends.base.FrontendModule#handle_authn_response
2525 :type context: satosa.context.Context
2626 :type internal_response: satosa.internal.InternalData
27- :rtype oic.utils.http_util .Response
27+ :rtype: satosa.response .Response
2828 """
2929 raise NotImplementedError ()
3030
3131 def handle_backend_error (self , exception ):
3232 """
3333 See super class satosa.frontends.base.FrontendModule
3434 :type exception: satosa.exception.SATOSAError
35- :rtype: oic.utils.http_util .Response
35+ :rtype: satosa.response .Response
3636 """
3737 raise NotImplementedError ()
3838
@@ -49,6 +49,8 @@ def register_endpoints(self, backend_names):
4949
5050 def ping_endpoint (self , context ):
5151 """
52+ :type context: satosa.context.Context
53+ :rtype: satosa.response.Response
5254 """
5355 msg = "Ping returning 200 OK"
5456 logline = lu .LOG_FMT .format (id = lu .get_session_id (context .state ), message = msg )
0 commit comments