Msg.Authorizer¶
- Implementations:
 
Methods¶
  | 
|
  | 
Virtual Methods¶
  | 
|
  | 
Properties¶
None
Signals¶
None
Fields¶
None
Class Details¶
- class Msg.Authorizer¶
 - Bases:
 - Structure:
 
- process_request(message)¶
 - Parameters:
 message (
Soup.Message) – ASoup.Message.
Adds the necessary authorization to message. The type of message can be DELETE, GET and POST.
This method modifies message in place and is thread safe.
- refresh_authorization(cancellable)¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – An optionalGio.Cancellableobject, orNone.- Raises:
 - Returns:
 Trueif the authorizer now has a valid token.- Return type:
 
Synchronously forces self to refresh any authorization tokens held by it. See msg_authorizer_refresh_authorization_async() for the asynchronous version of this call.
This method is thread safe.
- do_process_request(message) virtual¶
 - Parameters:
 message (
Soup.Message) – ASoup.Message.
Adds the necessary authorization to message. The type of message can be DELETE, GET and POST.
This method modifies message in place and is thread safe.
- do_refresh_authorization(cancellable) virtual¶
 - Parameters:
 cancellable (
Gio.CancellableorNone) – An optionalGio.Cancellableobject, orNone.- Returns:
 Trueif the authorizer now has a valid token.- Return type:
 
Synchronously forces iface to refresh any authorization tokens held by it. See msg_authorizer_refresh_authorization_async() for the asynchronous version of this call.
This method is thread safe.