def supported_activation_methods(res):
    """
    Given an activation_requirements document
    returns a list of activation methods supported by this endpoint.
    """
    supported = ['web']
    if res['oauth_server']:
        supported.append('oauth')
    for req in res['DATA']:
        if req['type'] == 'myproxy' and req['name'] == 'hostname' and req[
            'value'] != 'myproxy.globusonline.org':
            supported.append('myproxy')
        if req['type'] == 'delegate_proxy' and req['name'] == 'public_key':
            supported.append('delegate_proxy')
    return supported
