### Interface

# EBackend OAuth2Support

since: 3.8

#### Description

    interface EBackend.OAuth2Support : GObject.Object

No description available.

Available since: 3.8

#### Prerequisite

In order to implement OAuth2Support, your type must inherit from`GObject`.

#### Implementations

- ESourceRegistryServer

#### Instance methods

###### e_oauth2_support_get_access_token

Asynchronously obtains the OAuth 2.0 access token for `source` along with its expiry in seconds from the current time (or 0 if unknown).

since: 3.8

###### e_oauth2_support_get_access_token_finish

Finishes the operation started with e_oauth2_support_get_access_token().

since: 3.8

###### e_oauth2_support_get_access_token_sync

Obtains the OAuth 2.0 access token for `source` along with its expiry in seconds from the current time (or 0 if unknown).

since: 3.8

#### Interface structure

    struct EBackendOAuth2SupportInterface {
      gboolean (* get_access_token_sync) (
        EOAuth2Support* support,
        ESource* source,
        GCancellable* cancellable,
        gchar** out_access_token,
        gint* out_expires_in,
        GError** error
      );
      void (* get_access_token) (
        EOAuth2Support* support,
        ESource* source,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      );
      gboolean (* get_access_token_finish) (
        EOAuth2Support* support,
        GAsyncResult* result,
        gchar** out_access_token,
        gint* out_expires_in,
        GError** error
      );

    }

No description available.

###### Interface members

`get_access_token_sync` |
    gboolean (* get_access_token_sync) (
        EOAuth2Support* support,
        ESource* source,
        GCancellable* cancellable,
        gchar** out_access_token,
        gint* out_expires_in,
        GError** error
      )
| Synchronous interface method to get the access token.
`get_access_token` |
    void (* get_access_token) (
        EOAuth2Support* support,
        ESource* source,
        GCancellable* cancellable,
        GAsyncReadyCallback callback,
        gpointer user_data
      )
| Asynchronous interface method to get the access token.
`get_access_token_finish` |
    gboolean (* get_access_token_finish) (
        EOAuth2Support* support,
        GAsyncResult* result,
        gchar** out_access_token,
        gint* out_expires_in,
        GError** error
      )
| Counterpart of the asynchronous interface method to finishd get of the access token.

#### Virtual methods

###### EBackend.OAuth2Support.get_access_token

Asynchronously obtains the OAuth 2.0 access token for `source` along with its expiry in seconds from the current time (or 0 if unknown).

since: 3.8

###### EBackend.OAuth2Support.get_access_token_finish

Finishes the operation started with e_oauth2_support_get_access_token().

since: 3.8

###### EBackend.OAuth2Support.get_access_token_sync

Obtains the OAuth 2.0 access token for `source` along with its expiry in seconds from the current time (or 0 if unknown).

since: 3.8