Skip to content

DefaultAccessTokenAuthenticator

Represents the default access token authenticator that uses the Bearer token scheme for HTTP and WebSockets.

Fields:

Boolean IsPreAuthRequired

Indicates that no pre-authentication step is required for this type of authentication.

OnAuthenticationSuccededDelegate OnAuthenticationSucceded

This event is not used because IsPreAuthRequired is false.

OnAuthenticationFailedDelegate OnAuthenticationFailed

This event is not used because IsPreAuthRequired is false.

Methods:

Void StartAuthentication()

Not used as IsPreAuthRequired is false

Void PrepareRequest(HTTPRequest)

Prepares the HTTP request by adding appropriate authentication headers or query parameters based on the request type.

Uri PrepareUri(Uri)

Prepares the URI by appending the access token if necessary.

Void Cancel()

Cancels any ongoing authentication operations.

Comments