EDataServer.GDataOAuth2Authorizer

g EDataServer.GDataOAuth2Authorizer EDataServer.GDataOAuth2Authorizer GObject.Object GObject.Object GObject.Object->EDataServer.GDataOAuth2Authorizer

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class new (source, service_type)
class supported ()
  clone_credentials ()
  get_service_type ()
  is_expired ()
  ref_source ()
  set_credentials (credentials)

Virtual Methods

Inherited:GObject.Object (7)

Properties

Name Type Flags Short Description
service-type GObject.GType r/w/co The service type for which this authorization will be used
source EDataServer.Source r/w/co The data source to authenticate

Signals

Inherited:GObject.Object (1)

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  

Class Details

class EDataServer.GDataOAuth2Authorizer(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:EDataServer.GDataOAuth2AuthorizerClass
classmethod new(source, service_type)
Parameters:
Returns:

a new EDataServer.GDataOAuth2Authorizer, or None when the EDataServer.GDataOAuth2Authorizer is not supported.

Return type:

EDataServer.GDataOAuth2Authorizer

Creates a new EDataServer.GDataOAuth2Authorizer for the given source and service_type. The function always returns None when EDataServer.GDataOAuth2Authorizer.supported() returns False.

New in version 3.28.

classmethod supported()
Returns:Whether the EDataServer.GDataOAuth2Authorizer is supported, which means whether evolution-data-server had been compiled with libgdata.
Return type:bool

New in version 3.28.

clone_credentials()
Returns:A copy of currently stored credentials, or None, when none are set. Free the returned structure with EDataServer.NamedParameters.free(), when no longer needed.

See: EDataServer.GDataOAuth2Authorizer.supported()

Return type:EDataServer.NamedParameters or None

New in version 3.28.

get_service_type()
Returns:a service GObject.GType, for which the self had been created.

See: EDataServer.GDataOAuth2Authorizer.supported()

Return type:GObject.GType

New in version 3.28.

is_expired()
Returns:Whether the internally stored token is expired.

See: EDataServer.GDataOAuth2Authorizer.supported()

Return type:bool

New in version 3.28.

ref_source()
Returns:an EDataServer.Source, for which the self had been created, or None. Free returned non-None object with GObject.Object.unref(), when done with it.

See: EDataServer.GDataOAuth2Authorizer.supported()

Return type:EDataServer.Source

New in version 3.28.

set_credentials(credentials)
Parameters:credentials (EDataServer.NamedParameters or None) – credentials to set, or None

Updates internally stored credentials, used to get access token.

See: EDataServer.GDataOAuth2Authorizer.supported()

New in version 3.28.

Property Details

EDataServer.GDataOAuth2Authorizer.props.service_type
Name:service-type
Type:GObject.GType
Default Value:<GType GDataService>
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The service type for which this authorization will be used

EDataServer.GDataOAuth2Authorizer.props.source
Name:source
Type:EDataServer.Source
Default Value:None
Flags:READABLE, WRITABLE, CONSTRUCT_ONLY

The data source to authenticate