request_authorization


Description:

public bool request_authorization (string authorization_code, Cancellable? cancellable = null) throws Error

Request an authorisation code from the user’s web browser is converted to authorisation (access and refresh) tokens.

This is the final step in the authentication process; once complete, the OAuth2Authorizer should be fully authorised for its domains.

On failure, FORBIDDEN will be returned if the user or server denied the authorisation request. PROTOCOL_ERROR will be returned if the server didn’t follow the expected protocol. CANCELLED will be returned if the operation was cancelled using cancellable.

Parameters:

this

a OAuth2Authorizer

authorization_code

code returned from the authentication page

cancellable

a Cancellable, or null

Returns:

true on success, false otherwise