

def from_url(str_or_uri, rsa_private_key):
    "Creates a new SecureAuthSubToken using information in the URL.\n\n    Uses auth_sub_string_from_url.\n\n    Args:\n      str_or_uri: The current page's URL (as a str or atom.http_core.Uri)\n          which should contain a token query parameter since the Google auth\n          server redirected the user's browser to this URL.\n      rsa_private_key: str the private RSA key cert used to sign all requests\n          made with this token.\n    "
    token_and_scopes = auth_sub_string_from_url(str_or_uri)
    return SecureAuthSubToken(token_and_scopes[0], rsa_private_key, token_and_scopes[1])

dataset/ETHPy150Open acil-bwh/SlicerCIP/Scripted/attic/PicasaSnap/gdata/gauth.py SecureAuthSubToken.from_url/original