9.1.2.14. GeoHealthCheck.resourceauth
9.1.2.14.1. Module Contents
9.1.2.14.1.1. Classes
Base class for specific Plugin implementations to perform |
9.1.2.14.1.2. Attributes
- GeoHealthCheck.resourceauth.APP
- GeoHealthCheck.resourceauth.LOGGER
- class GeoHealthCheck.resourceauth.ResourceAuth
Bases:
plugin.Plugin
Base class for specific Plugin implementations to perform authentication on a Resource. Subclasses provide specific auth methods like Basic Auth, Bearer Token etc.
- 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()