Esempio n. 1
0
def request_macaroon():
    """
    Request a macaroon from dashboard.
    Returns the macaroon.
    """
    response = sso.post_macaroon(
        {"permissions": ["package_access", "package_upload", "edit_account"]}
    )

    return response["macaroon"]
Esempio n. 2
0
def request_macaroon():
    """
    Request a macaroon from dashboard.
    Returns the macaroon.
    """
    response = sso.post_macaroon({
        "permissions": [
            "package_access",
            "package_metrics",
            "package_update",
            "package_register",
            "package_release",
            "edit_account",
        ]
    })

    return response["macaroon"]
Esempio n. 3
0
def request_macaroon():
    """
    Request a macaroon from dashboard.
    Returns the macaroon.
    """
    response = sso.post_macaroon(
        {
            "permissions": [
                "package_access",
                "package_metrics",
                "package_update",
                "package_register",
                "package_release",
                "edit_account",
            ]
        }
    )

    return response["macaroon"]