OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
oauth.oauth_redirect_server.OAuthRedirectServer Class Reference

Waits for a single OAuth redirect callback using a local HTTP server. More...

Public Member Functions

OAuthCallbackResult wait_for_callback (self, *, Callable[[], bool] is_current=lambda:True)
 Block until a callback, timeout, or cancellation.

Detailed Description

Waits for a single OAuth redirect callback using a local HTTP server.

Member Function Documentation

◆ wait_for_callback()

OAuthCallbackResult oauth.oauth_redirect_server.OAuthRedirectServer.wait_for_callback ( self,
* ,
Callable[[], bool] is_current = lambda: True )

Block until a callback, timeout, or cancellation.

Parameters
is_currentWhether the owning authorization flow is still active.
Returns
Callback fields, empty after timeout or cancellation.

The documentation for this class was generated from the following file:
  • protocols/oauth/oauth_redirect_server.py