authorization package

Submodules

authorization.helper module

authorization.helper.create_agent_jwt(credentials)[source]
authorization.helper.create_jwt_message(credentials)[source]
authorization.helper.get_int_from_datetime(dt)[source]
authorization.helper.load_credentials(path)[source]
authorization.helper.load_json(content)[source]

authorization.is_authorized module

authorization.is_authorized.is_authorized_digital_twin(self, digital_twin_id, -, resources=[], input_params={}, policy_tags=[])[source]
authorization.is_authorized.is_authorized_property_filter(self, type_filter, value, resources=[], input_params={}, policy_tags=[])[source]
authorization.is_authorized.is_authorized_token(self, access_token, resources=[], input_params={}, policy_tags=[])[source]
authorization.is_authorized.request_input_params(input_params)[source]
authorization.is_authorized.request_resource(resources)[source]

authorization.what_authorized module

authorization.what_authorized.request_input_params(input_params)[source]
authorization.what_authorized.request_resource_type(resource_types)[source]
authorization.what_authorized.what_authorized_digital_twin(self, digital_twin_id, -, resource_types=[], input_params={}, policy_tags=[])[source]
authorization.what_authorized.what_authorized_property_filter(self, type_filter, value, resource_types=[], input_params={}, policy_tags=[])[source]
authorization.what_authorized.what_authorized_token(self, access_token, resource_types=[], input_params={}, policy_tags=[])[source]

authorization.who_authorized module

authorization.who_authorized.request_input_params(input_params)[source]
authorization.who_authorized.request_resource(resources)[source]
authorization.who_authorized.who_authorized(self, resources=[], input_params={}, policy_tags=[])[source]

Module contents

class authorization.AuthorizationClient(local=False)[source]

Bases: object

is_authorized_digital_twin(digital_twin_id, -, resources=[], input_params={}, policy_tags=[])
is_authorized_property_filter(type_filter, value, resources=[], input_params={}, policy_tags=[])
is_authorized_token(access_token, resources=[], input_params={}, policy_tags=[])
what_authorized_digital_twin(digital_twin_id, -, resource_types=[], input_params={}, policy_tags=[])
what_authorized_property_filter(type_filter, value, resource_types=[], input_params={}, policy_tags=[])
what_authorized_token(access_token, resource_types=[], input_params={}, policy_tags=[])
who_authorized(resources=[], input_params={}, policy_tags=[])