pywry.auth.callback_server¶
Local HTTP callback server for OAuth2 redirect handling in native mode.
OAuthCallbackServer¶
pywry.auth.callback_server.OAuthCallbackServer
¶
Ephemeral localhost HTTP server for capturing OAuth2 redirects.
| PARAMETER | DESCRIPTION |
|---|---|
host
|
Bind address (default
TYPE:
|
port
|
Port number (
TYPE:
|
Initialize the callback server.
Attributes¶
redirect_uri
property
¶
Get the redirect URI for this callback server.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The full redirect URI (e.g. |
Functions¶
start
¶
Start the callback server on a daemon thread.
| RETURNS | DESCRIPTION |
|---|---|
str
|
The redirect URI to use with the OAuth2 provider. |
wait_for_callback
¶
Block until the callback is received or timeout expires.
| PARAMETER | DESCRIPTION |
|---|---|
timeout
|
Maximum seconds to wait (default 120).
TYPE:
|
| RETURNS | DESCRIPTION |
|---|---|
dict or None
|
Callback parameters ( |