

@classmethod
def build_security_headers(cls, context):
    '\n        Examining context, builds a set of headers containing necessary forwarded items.\n\n        @return     A new dictionary containing headers from the context that are important.\n        '
    header = {
        
    }
    actor_id = context.get('ion-actor-id', None)
    actor_roles = context.get('ion-actor-roles', None)
    actor_tokens = context.get('ion-actor-tokens', None)
    expiry = context.get('expiry', None)
    container_id = context.get('origin-container-id', None)
    original_conv_id = context.get('original-conv-id', None)
    conv_id = context.get('conv-id', None)
    if actor_id:
        header['ion-actor-id'] = actor_id
        if actor_roles:
            header['ion-actor-roles'] = actor_roles
    if actor_tokens:
        header['ion-actor-tokens'] = actor_tokens
    if expiry:
        header['expiry'] = expiry
    if container_id:
        header['origin-container-id'] = container_id
    if original_conv_id:
        header['original-conv-id'] = original_conv_id
    elif conv_id:
        header['original-conv-id'] = conv_id
    return header

dataset/ETHPy150Open ooici/pyon/pyon/ion/endpoint.py ProcessEndpointUnitMixin.build_security_headers/original