AuthorizedUser Type
Client login, password, and QuickBooks connection information.
Remarks
The AuthorizedUser type contains the User and Password of a client that is allowed to connect to the QBConnector class. When a client connects, the user name and password supplied in the HTTP authorization header are compared to the credentials of each authorized user. If a match is found, the class uses the information in the QBConnectionString to make a connection to QuickBooks.
Fields
authMode AuthModes |
This property defines how the user is authorized. There are two ways that the user may be authorized, against the user list defined in the class, or as a Windows user. From the client side the process of connecting is exactly the same no matter which option you choose. Possible values are:
When using the amWindows AuthMode the class will validate the user's credentials with Windows. When calling AddUser the Password parameter should be set to empty string. | ||||||
password String |
A password associated with the User who is allowed to connect to the class. Connecting clients' authorization headers will be compared against this User and Password. | ||||||
qbConnectionString String |
An aggregate consisting of various QuickBooks connection properties that are used to connect the authorized client to the QuickBooks application. The connection properties should be formatted in a sequence as follows: propertyname = "propertyvalue" propertyname = "propertyvalue" ... The order is irrelevant, and the whitespace around the equal sign is optional. The following properties are currently supported:
| ||||||
user String |
Name of a user which is allowed to connect to the class. Connecting clients' authorization headers will be compared against this User and Password. |
Constructors
public init()
public init(user: String, password: String)
public init(user: String, password: String, qBConnectionString: String)
public init(user: String, password: String, qBConnectionString: String, authMode: AuthModes)