module documentation

Undocumented

Class DropboxOAuth2Flow OAuth 2 authorization helper. Use this for web apps.
Class DropboxOAuth2FlowBase No class docstring; 0/10 instance variable, 2/5 methods documented
Class DropboxOAuth2FlowNoRedirect OAuth 2 authorization helper for apps that can't provide a redirect URI (such as the command-line example apps).
Class OAuth2FlowNoRedirectResult Authorization information for an OAuth2Flow performed with no redirect.
Class OAuth2FlowResult Authorization information for an :class:`OAuth2Flow` with redirect.
Exception BadInputException Thrown if incorrect types/values are used
Exception BadRequestException Thrown if the redirect URL was missing parameters or if the given parameters were not valid.
Exception BadStateException Thrown if all the parameters are correct, but there's no CSRF token in the session. This probably means that the session expired.
Exception CsrfException Thrown if the given 'state' parameter doesn't contain the CSRF token from the user's session. This is blocked to prevent CSRF attacks.
Exception NotApprovedException The user chose not to approve your app.
Exception ProviderException Dropbox redirected to your redirect URI with some unexpected error identifier and error message.
Constant INCLUDE_GRANTED_SCOPES_TYPES Undocumented
Constant PKCE_VERIFIER_LENGTH Undocumented
Constant TOKEN_ACCESS_TYPES Undocumented
Function _generate_pkce_code_challenge Undocumented
Function _generate_pkce_code_verifier Undocumented
Function _params_to_urlencoded Returns a application/x-www-form-urlencoded :class:`str` representing the key/value pairs in :attr:`params`.
Function _safe_equals Undocumented
INCLUDE_GRANTED_SCOPES_TYPES: list[str] = (source)

Undocumented

Value
['user', 'team']
PKCE_VERIFIER_LENGTH: int = (source)

Undocumented

Value
128
TOKEN_ACCESS_TYPES: list[str] = (source)

Undocumented

Value
['offline', 'online', 'legacy']
def _generate_pkce_code_challenge(code_verifier): (source)

Undocumented

def _generate_pkce_code_verifier(): (source)

Undocumented

def _params_to_urlencoded(params): (source)

Returns a application/x-www-form-urlencoded :class:`str` representing the key/value pairs in :attr:`params`. Keys are values are ``str()``'d before calling :meth:`urllib.urlencode`, with the exception of unicode objects which are utf8-encoded.

def _safe_equals(a, b): (source)

Undocumented