EDataServer.SoupAuthBearer¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
Class Details¶
- class EDataServer.SoupAuthBearer(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Contains only private data that should be read and manipulated using the functions below.
New in version 3.10.
- is_expired()¶
- Returns:
Whether the set token is expired. It is considered expired even if the
EDataServer.SoupAuthBearer.set_access_token
() was called set yet.- Return type:
New in version 3.24.
- set_access_token(access_token, expires_in_seconds)¶
- Parameters:
This function is analogous to
Soup.Auth.authenticate
() for “Basic” HTTP authentication, except it takes an OAuth 2.0 access token instead of a username and password.If expires_in_seconds is greater than zero,
Soup.Auth.is_authenticated
() will returnFalse
after the given number of seconds have elapsed.New in version 3.10.