def __init__(self, cas, app_name, api_host, api_base, shiro_cas_base):
""" Constructor
Args:
cas (object): A valid CAS instance
app_name (str): The application name
api_host (str): The host to make API request to
api_base (str): The API base of the application
shiro_cas_base (str): The shiro cas base of the application
"""
assert cas and isinstance(cas, CAS)
self._cas = cas
assert app_name
self._app_name = app_name
assert api_host
self._api_host = api_host
assert api_base
self._api_base = api_base
assert shiro_cas_base
self._shiro_cas_base = shiro_cas_base
self._st = None
self._logger = get_logger()
评论列表
文章目录