Msg.OAuth2Authorizer

g GObject.GInterface GObject.GInterface Msg.Authorizer Msg.Authorizer GObject.GInterface->Msg.Authorizer GObject.Object GObject.Object Msg.OAuth2Authorizer Msg.OAuth2Authorizer GObject.Object->Msg.OAuth2Authorizer Msg.Authorizer->Msg.OAuth2Authorizer

Subclasses:

None

Methods

Inherited:

GObject.Object (37), Msg.Authorizer (2)

Structs:

GObject.ObjectClass (5)

class

new (client_id, redirect_uri)

class

test_load_credentials (self)

class

test_save_credentials (self)

build_authentication_uri ()

request_authorization (authorization_code, cancellable)

Virtual Methods

Inherited:

GObject.Object (7), Msg.Authorizer (2)

Properties

Name

Type

Flags

Short Description

client-id

str

r/w/co

A client ID for your application.

redirect-uri

str

r/w/co

Redirect URI to send the response from the authorisation request to.

refresh-token

str

r/w

The server provided refresh token.

Signals

Inherited:

GObject.Object (1)

Fields

Inherited:

GObject.Object (1)

Name

Type

Access

Description

parent_instance

GObject.Object

r

Class Details

class Msg.OAuth2Authorizer(**kwargs)
Bases:

GObject.Object, Msg.Authorizer

Abstract:

No

Structure:

Msg.OAuth2AuthorizerClass

classmethod new(client_id, redirect_uri)
Parameters:
  • client_id (str) –

  • redirect_uri (str) –

Return type:

Msg.OAuth2Authorizer

classmethod test_load_credentials(self)
Parameters:

self (Msg.Authorizer) –

Return type:

bool

classmethod test_save_credentials(self)
Parameters:

self (Msg.Authorizer) –

build_authentication_uri()
Return type:

str

request_authorization(authorization_code, cancellable)
Parameters:
Raises:

GLib.Error

Return type:

bool

Property Details

Msg.OAuth2Authorizer.props.client_id
Name:

client-id

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

A client ID for your application.

Msg.OAuth2Authorizer.props.redirect_uri
Name:

redirect-uri

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Redirect URI to send the response from the authorisation request to.

Msg.OAuth2Authorizer.props.refresh_token
Name:

refresh-token

Type:

str

Default Value:

None

Flags:

READABLE, WRITABLE

The server provided refresh token.