The OAuthClient object provides interfaces for obtaining the OAuth 2.0 access token and accessing the protected resources. For more information about using OAuthClient with OAuth 2.0, see the section called “Supporting OAuth 2.0 Authorization Server”.
Note
OAuthClient (as well as HTTPClient, RESTClient, CrypterObject, CoderObject, CompressorObject, DotNetAssembly, JSONGenerator, JSONParser, JSONPackage, PDF Builder objects, SMTPClient, PowerServerLabel, PowerServerResult) does not support multi-threading.
Note
If the default properties of OAuthClient do not provide all the parameters required by the OAuth authorization server, use the TokenRequest.AppendParam function to add custom parameters to the token request. For examples of using custom token request parameters, see the section called “Supporting OAuth 2.0 Authorization Server”.
|
OAuthClient property |
Datatype |
Description |
|---|---|---|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
|
OAuthClient event |
Occurs |
|---|---|
|
Immediately before the Open event occurs in the window. |
|
|
Immediately after the Close event occurs in the window. |
|
OAuthClient function |
Datatype returned |
Description |
|---|---|---|
|
Integer |
Sends a request to get token information. |
|
|
String |
Returns the name assigned to the object. |
|
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
|
PowerObject |
Returns a reference to the name of the parent object. |
|
|
Boolean |
Adds the specified event to the end of the event queue for the specified object. |
|
|
Integer |
Sends a request to get resource. |
|
|
Integer |
Triggers a specified event in the control and executes the script for the event |
|
|
Object |
Returns the type of the object. |


