authcaptureproxy.cli
¶
Command-line interface for auth_capture_proxy.
Module Contents¶
-
authcaptureproxy.cli.
coro
(f)¶ Wrap f to run as async.
-
authcaptureproxy.cli.
info
(n_seconds: float = 0.01, verbose: bool = False) → None¶ Get info about auth_capture_proxy.
- Parameters
n_seconds – Number of seconds to wait between processing.
verbose – Output more info
-
async
authcaptureproxy.cli.
proxy_example
(proxy: str = 'http://127.0.0.1', host: str = 'https://www.amazon.com/ap/signin?openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.com%2F%3Fref_%3Dnav_signin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=usflex&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&', callback: str = '', timeout: int = 300, debug: bool = False)¶ Run proxy example for Amazon.com.
- Parameters
proxy (str, optional) – The url to connect to the proxy. If no port specified, will generate random port. Defaults to “http://127.0.0.1”.
host (str, optional) – The signing page to proxy. Defaults to “https://www.amazon.com/ap/signin?openid.pape.max_auth_age=0&openid.return_to=https%3A%2F%2Fwww.amazon.com%2F%3Fref_%3Dnav_signin&openid.identity=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.assoc_handle=usflex&openid.mode=checkid_setup&openid.claimed_id=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0%2Fidentifier_select&openid.ns=http%3A%2F%2Fspecs.openid.net%2Fauth%2F2.0&”.
callback (str, optional) – Callback url to redirect browser to on success. Defaults to “”.
timeout (int, optional) – How long to leave the proxy running without success. Defaults to 300.
debug (bool, optional) – Whether to print debug messages to console. Defaults to False.