GData.AuthorizerInterface

Fields

Name

Type

Access

Description

is_authorized_for_domain

object

r

a function to check whether the authorizer is authorized against the given domain; this must be implemented and must be thread safe

parent

GObject.TypeInterface

r

the parent type

process_request

object

r

a function to append authorization headers to queries before they are submitted to the online service under the given authorization domain (which may be None); this must be implemented and must be thread safe, and must also handle being called multiple times on the same Soup.Message instance (so must be careful to replace headers rather than append them, for example)

refresh_authorization

object

r

a function to force a refresh of any authorization tokens the authorizer holds, returning True if a refresh was attempted and was successful, or False if a refresh wasn’t attempted or was unsuccessful; if this isn’t implemented it’s assumed False would’ve been returned, if it is implemented it must be thread safe

refresh_authorization_async

object

r

an asynchronous version of refresh_authorization; if this isn’t implemented and refresh_authorization is, refresh_authorization will be called in a thread to simulate this function, whereas if this is implemented refresh_authorization_finish must also be implemented and both functions must be thread safe

refresh_authorization_finish

object

r

a finish function for the asynchronous version of refresh_authorization; this must be implemented exactly if refresh_authorization_async is implemented, and must be thread safe if it is implemented

Methods

None

Details

class GData.AuthorizerInterface

The class structure for the GData.Authorizer interface.

New in version 0.9.0.