class documentation
class OAuthCallbackHttpServer(HTTPServer):
Constructor: OAuthCallbackHttpServer(port)
Simplistic HTTP Server to provide local callback URL for oauth2 provider
Method | __init__ |
Undocumented |
Method | get |
This method should only be called after the request was done and might be None when no token is given. |
Method | wait |
Wait for the server to open the callback page containing the code query parameter. |
Property | callback |
Callback URL for the HTTP-Server |
Instance Variable | _code |
Undocumented |
Wait for the server to open the callback page containing the code query parameter.
It tries for #attempts with a timeout of #timeout_per_attempts for each attempt. This prevents the CLI from getting stuck by unsolved callback URls
Parameters | |
attempts:int | Amount of attempts |
timeout | Timeout for each attempt to be successful |
Returns | |
Optional[ | Code from callback page or None if the callback page is not called successfully |