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 component. 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 component 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 component, 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 component 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 component. 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 component. Connecting clients' authorization headers will be compared against this User and Password. |
Constructors
[VB.NET] Public AuthorizedUser() [C#] public AuthorizedUser();
[VB.NET] Public AuthorizedUser(ByVal User As String, ByVal Password As String) [C#] public AuthorizedUser(string user, string password);
[VB.NET] Public AuthorizedUser(ByVal User As String, ByVal Password As String, ByVal QBConnectionString As String) [C#] public AuthorizedUser(string user, string password, string QBConnectionString);
[VB.NET] Public AuthorizedUser(ByVal User As String, ByVal Password As String, ByVal QBConnectionString As String, ByVal AuthMode As Integer) [C#] public AuthorizedUser(string user, string password, string QBConnectionString, int authMode);