GAppsService::setUserCredentials
Description
In BBj 11.0 and higher, this method sets the user credentials that will be used for authentication to a Google Apps service.
Syntax
Return Value |
Method |
void |
setUserCredentials(string user, string password) |
void |
setUserCredentials(string user, string password, boolean remember) |
Parameters
Variable |
Description |
password |
Specifies the password that will be used for the Google Apps authentication. |
remember |
Specify true (1) to save the user credentials upon successful authentication. Otherwise specify false (0). The default is false (0). |
user |
Specifies the user that will be used for the Google Apps authentication. |
Return Values
None.
Remarks
Each Google service may have its own authentication. Errors will be thrown if the connection to the Google service fails and if the authentication fails. Saving of the user credentials consists of setting a unique ID on the client and an associated file on the server in the <bbj install>/utils/gapps/tokens directory that contains an encrypted user token.
Example
|