コード例 #1
0
def auth_headers(write_token):
    """Authentication headers (with a valid oauth2 token).

    It uses the token associated with the first user.
    """
    return bearer_auth([], write_token)
コード例 #2
0
ファイル: conftest.py プロジェクト: zenodo/zenodo
def auth_headers(write_token):
    """Authentication headers (with a valid oauth2 token).

    It uses the token associated with the first user.
    """
    return bearer_auth([], write_token)
コード例 #3
0
ファイル: conftest.py プロジェクト: zenodo/zenodo
def json_extra_auth_headers(json_headers, extra_token):
    """Authentication headers (with a valid oauth2 token).

    It uses the token associated with the first user.
    """
    return bearer_auth(json_headers, extra_token)
コード例 #4
0
ファイル: conftest.py プロジェクト: jbenito3/zenodo
def json_extra_auth_headers(json_headers, extra_token):
    """Authentication headers (with a valid oauth2 token).

    It uses the token associated with the first user.
    """
    return bearer_auth(json_headers, extra_token)