9.3.1.15. GeoHealthCheck.resourceauth
9.3.1.15.1. Attributes
9.3.1.15.2. Classes
Base class for specific Plugin implementations to perform |
9.3.1.15.3. Module Contents
- GeoHealthCheck.resourceauth.APP = None
- GeoHealthCheck.resourceauth.LOGGER
- class GeoHealthCheck.resourceauth.ResourceAuth
Bases:
plugin.PluginBase class for specific Plugin implementations to perform authentication on a Resource. Subclasses provide specific auth methods like Basic Auth, Bearer Token etc.
- resource = None
- auth_dict = None
- init(auth_dict=None)
Initialize ResourceAuth with related Resource and auth dict. :return:
- static create(auth_dict)
- static get_auth_defs()
Get available ResourceAuth definitions. :return: dict keyed by NAME with object instance values
- verify()
- encode()
Encode/encrypt auth dict structure. :return: encoded string
- static decode(encoded)
Decode/decrypt encrypted string into auth dict. :return: encoded auth dict
- add_auth_header(headers_dict)
- get_auth_header()
Get encoded authorization header value from config data. Authorization scheme-specific. :return: None or dict with http auth header
- encode_auth_header_val()