Class

EDataServerOAuth2ServiceGoogle

Description

class EDataServer.OAuth2ServiceGoogle : EDataServer.OAuth2ServiceBase
  implements EDataServer.OAuth2Service {
  /* No available fields */
}

No description available.

Hierarchy

hierarchy this EOAuth2ServiceGoogle implements_0 EOAuth2Service this--implements_0 ancestor_0 EOAuth2ServiceBase ancestor_0--this ancestor_1 EExtension ancestor_1--ancestor_0 ancestor_2 GObject ancestor_2--ancestor_1

Implements

Instance methods

Methods inherited from EExtension (1)
e_extension_get_extensible

Returns the object that extension extends.

since: 3.4

Methods inherited from GObject (43)

Please see GObject for a full list of methods.

Methods inherited from EOAuth2Service (23)
e_oauth2_service_can_process

Checks whether the service can be used with the given source.

since: 3.28

e_oauth2_service_delete_token_sync

Deletes token information for the service and source from the secret store.

since: 3.28

e_oauth2_service_dup_credentials_prompter_cookies_sync

Additional cookies to be used in the prompt dialog when asking for the user credentials. The default implementation does not provide any cookies.

since: 3.54

e_oauth2_service_extract_authorization_code

Tries to extract an authorization code from a web page provided by the server. The function can be called multiple times, whenever the page load is finished. The default implementation uses e_oauth2_service_util_extract_from_uri() to get the code from the given page_uri.

since: 3.28

e_oauth2_service_extract_error_message

Tries to extract error message from the server response, return TRUE, when an error message could be found, in which case also sets the out_error_message with it. The default implementation uses e_oauth2_service_util_extract_from_uri(), returning either the error description or the error code, when the description is not found.

since: 3.48

e_oauth2_service_get_access_token_sync

Reads access token information from the secret store for the source and in case it’s expired it refreshes the token, if possible.

since: 3.28

e_oauth2_service_get_authentication_policy

Used to decide what to do when the server redirects to the next page. The default implementation always returns E_OAUTH2_SERVICE_NAVIGATION_POLICY_ALLOW.

since: 3.28

e_oauth2_service_get_authentication_uri
No description available.

since: 3.28

e_oauth2_service_get_client_id
No description available.

since: 3.28

e_oauth2_service_get_client_secret
No description available.

since: 3.28

e_oauth2_service_get_display_name

Returns a human readable name of the service. This is similar to e_oauth2_service_get_name(), except this string should be localized, because it will be used in user-visible strings.

since: 3.28

e_oauth2_service_get_flags
No description available.

since: 3.28

e_oauth2_service_get_name

Returns a unique name of the service. It can be named for example by the server or the company from which it receives the OAuth2 token and where it refreshes it, like “Company” for login.company.com.

since: 3.28

e_oauth2_service_get_redirect_uri

Returns a value for the “redirect_uri” keys in the authenticate and get_token operations. The default implementation returns “urn:ietf:wg:oauth:2.0:oob”.

since: 3.28

e_oauth2_service_get_refresh_uri
No description available.

since: 3.28

e_oauth2_service_guess_can_process

Checks whether the service can be used with the given protocol and/or hostname. Any of protocol and hostname can be NULL, but not both. It’s up to each implementer to decide, which of the arguments are important and whether all or only any of them can be required.

since: 3.28

e_oauth2_service_prepare_authentication_uri_query

The service can change what arguments are passed in the authentication URI in this method. The default implementation sets some values too, namely “response_type”, “client_id”, “redirect_uri” and “login_hint”, if available in the source. These parameters are always provided, even when the interface implementer overrides this method.

since: 3.28

e_oauth2_service_prepare_get_token_form

Sets additional form parameters to be used in the POST request when requesting access token after successfully obtained authorization code. The default implementation sets some values too, namely “code”, “client_id”, “client_secret”, “redirect_uri” and “grant_type”. These parameters are always provided, even when the interface implementer overrides this method.

since: 3.28

e_oauth2_service_prepare_get_token_message

The service can change the message before it’s sent to the e_oauth2_service_get_authentication_uri(), with POST data being provided by e_oauth2_service_prepare_get_token_form(). The default implementation does nothing with the message.

since: 3.28

e_oauth2_service_prepare_refresh_token_form

Sets additional form parameters to be used in the POST request when requesting to refresh an access token. The default implementation sets some values too, namely “refresh_token”, “client_id”, “client_secret” and “grant_type”. These parameters are always provided, even when the interface implementer overrides this method.

since: 3.28

e_oauth2_service_prepare_refresh_token_message

The service can change the message before it’s sent to the e_oauth2_service_get_refresh_uri(), with POST data being provided by e_oauth2_service_prepare_refresh_token_form(). The default implementation does nothing with the message.

since: 3.28

e_oauth2_service_receive_and_store_token_sync

Queries service at e_oauth2_service_get_refresh_uri() with a request to obtain a new access token, associated with the given authorization_code and stores it into the secret store on success.

since: 3.28

e_oauth2_service_refresh_and_store_token_sync

Queries service at e_oauth2_service_get_refresh_uri() with a request to refresh existing access token with provided refresh_token and stores it into the secret store on success.

since: 3.28

Properties

Properties inherited from EExtension (1)
EDataServer.Extension:extensible

The object being extended.

Signals

Signals inherited from GObject (1)
GObject::notify

The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.

Class structure

struct EDataServerOAuth2ServiceGoogleClass {
  EOAuth2ServiceBaseClass parent_class;
  
}

No description available.

Class members
parent_class: EOAuth2ServiceBaseClass

No description available.