1
1
import logging
2
2
3
3
import satosa .logging_util as lu
4
- import satosa .micro_services .base
4
+ from satosa .frontends .base import FrontendModule
5
5
from satosa .response import Response
6
6
7
7
8
8
logger = logging .getLogger (__name__ )
9
9
10
10
11
- class PingFrontend (satosa . frontends . base . FrontendModule ):
11
+ class PingFrontend (FrontendModule ):
12
12
"""
13
13
SATOSA frontend that responds to a query with a simple
14
14
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
19
19
20
20
self .config = config
21
21
22
- def handle_authn_response (self , context , internal_resp , extra_id_token_claims = None ):
22
+ def handle_authn_response (self , context , internal_resp ):
23
23
"""
24
24
See super class method satosa.frontends.base.FrontendModule#handle_authn_response
25
25
:type context: satosa.context.Context
26
26
:type internal_response: satosa.internal.InternalData
27
- :rtype oic.utils.http_util .Response
27
+ :rtype: satosa.response .Response
28
28
"""
29
29
raise NotImplementedError ()
30
30
31
31
def handle_backend_error (self , exception ):
32
32
"""
33
33
See super class satosa.frontends.base.FrontendModule
34
34
:type exception: satosa.exception.SATOSAError
35
- :rtype: oic.utils.http_util .Response
35
+ :rtype: satosa.response .Response
36
36
"""
37
37
raise NotImplementedError ()
38
38
@@ -49,6 +49,8 @@ def register_endpoints(self, backend_names):
49
49
50
50
def ping_endpoint (self , context ):
51
51
"""
52
+ :type context: satosa.context.Context
53
+ :rtype: satosa.response.Response
52
54
"""
53
55
msg = "Ping returning 200 OK"
54
56
logline = lu .LOG_FMT .format (id = lu .get_session_id (context .state ), message = msg )
0 commit comments