authcode Module

A one-stop helper for desktop app to acquire an authorization code.

It starts a web server to listen redirect_uri, waiting for auth code. It optionally opens a browser window to guide a human user to manually login. After obtaining an auth code, the web server will automatically shut down.

Classes

AuthCodeReceiver

Functions

is_wsl

is_wsl()

obtain_auth_code

obtain_auth_code(listen_port, auth_uri=None)

Parameters

listen_port
auth_uri
default value: None