The TokenRequest object can get or set the properties for the OAuth 2.0 token request, including the address of the authorization server, the OAuth 2.0 authorization process, the scope of the access request, the security protocol, the timeout value etc.
If the OAuth authorization server requires additional token request parameters that are not directly exposed by the default properties, you can use the TokenRequest.AppendParam function to add custom parameters to the request and support additional OAuth 2.0 scenarios. See the section called “Supporting OAuth 2.0 Authorization Server” for code examples.
|
TokenRequest property |
Datatype |
Description |
|---|---|---|
|
Boolean |
Whether to allow the client to access the server anonymously. |
|
|
Boolean |
Checks if the server certificate is revoked. |
|
|
ClassDefinition |
PowerObject |
An object of type PowerObject containing information about the class definition of the object or control. |
|
String |
Identifier of the registered client issued by the authorization server. If the program sets the "Authorization" request header, this property will be ignored. |
|
|
String |
Password of the registered client issued by the authorization server. If the program sets the "Authorization" request header, this property will be ignored. |
|
|
Boolean |
Whether to enable support for the HTTP2 connection when sending requests. |
|
|
String |
The type of the authorization process. Values are:
|
|
|
Integer |
Ignores certain error(s) of the server certificate. |
|
|
String |
HTTP method for sending the authentication request. Values are: GET – HTTP get method; POST – HTTP post method. |
|
|
String |
The password of the resource owner. |
|
|
String |
The scope of the access request. |
|
|
Integer |
Specifies the security protocol. |
|
|
Long |
Specifies the timeout seconds. The default value is 60 and 0 means no timeout. |
|
|
String |
The URL of the authorization server. |
|
|
String |
The name of the resource owner. |
|
TokenRequest function |
Datatype returned |
Description |
|---|---|---|
|
Integer |
Appends a custom parameter to the token request body. |
|
|
String |
Returns the name assigned to the object. |
|
|
Integer |
Clears the client certificate that is set with SetClientCert. |
|
|
Integer |
Clears the header of the request. |
|
|
Integer |
Clears all of the parameters added by the AppendParam function. |
|
|
Integer |
Creates a reference to a context-specific instance of the specified service. |
|
|
String |
Gets the request header by name. |
|
|
String |
Gets the header of all of the requests. |
|
|
PowerObject |
Returns a reference to the name of the parent object. |
|
|
Integer |
Sets the client certificate that will be used to access the server. |
|
|
Integer |
Sets the request header by name. |
|
|
Integer |
Sets the header information of all of the requests. |
|
|
Object |
Returns the type of the object. |


