TokenResponse object

The TokenResponse object can get the information of the access token response returned by the authorization server, including the access token, the refresh token, the HTTP response header etc.

Note

This object cannot be referenced in .NET Web Service or .NET Assembly components, otherwise the component will fail to be deployed.

Properties

TokenResponse property

Datatype

Description

ClassDefinition

PowerObject

An object of type PowerObject containing information about the class definition of the object or control.


Functions

TokenResponse function

Datatype returned

Description

ClassName

String

Returns the name assigned to the object.

GetAccessToken

String

Gets the access token returned by authorization server.

GetBody

Integer

Gets the response body into string.

GetContextService

Integer

Creates a reference to a context-specific instance of the specified service.

GetExpiresIn

Long

Gets lifetime of the access token returned by authorization server.

GetHeader

String

Gets the response header by name.

GetHeaders

String

Gets the header of all responses by name.

GetParent

PowerObject

Returns a reference to the name of the parent object.

GetRefreshToken

String

Gets the refresh token returned by authorization server.

GetStatusCode

Long

Gets the response status code.

GetStatusText

String

Gets the response status description.

GetTokenError

String

Gets the error information returned by the Authorization Server if the request privilege grant failed.

GetTokenType

String

Gets the access token type returned by authorization server.

TypeOf

Object

Returns the type of the object.