QuickBooks Integrator 2020 Python Edition

Questions / Feedback?

on_authorization Event

Fired when the client presents its credentials to the server.

Syntax

class QBConnectorAuthorizationEventParams(object):
  @property
  def connection_id() -> int: ...
  @property
  def user_index() -> int: ...
  @property
  def user() -> str: ...
  @property
  def password() -> str: ...
  @property
  def accept() -> bool: ...
  @accept.setter
  def accept(value) -> None: ...

# In class QBConnector:
@property
def on_authorization() -> Callable[[QBConnectorAuthorizationEventParams], None]: ...
@on_authorization.setter
def on_authorization(event_hook: Callable[[QBConnectorAuthorizationEventParams], None]) -> None: ...

Remarks

This is where the server can decide whether to continue or not, based on the supplied User and Password.

To accept or reject a connection set Accept to True of False.

The Accept parameter defaults to True if User is found in the authorized_users collection and Password matches, and False otherwise. The UserIndex parameter indicates the index at which the authorized user was found in the collection.

A UserIndex of -1 means that no matching credentials were found in the authorized_users collection.

Copyright (c) 2021 /n software inc. - All rights reserved.
QuickBooks Integrator 2020 Python Edition - Version 20.0 [Build 7941]